KöMaL - Középiskolai Matematikai és Fizikai Lapok
Sign In
Sign Up
 Magyar
Information
Contest
Journal
Articles

 

Problem I. 102. (March 2005)

I. 102. Write a program (i102.pas, ...) to decide whether a matrix with integer entries has at least one prime number in each of its rows.

The first line of the input will contain two positive integers, m and n, the dimensions of the first matrix, separated by a space, then the entries of the matrix will follow in m lines, each line containing n positive integers separated by spaces. Then either an end of input mark will be entered (two 0's separated by a space), or the description of another matrix in a similar format.

Your program should be submitted.

(10 pont)

Deadline expired on 15 April 2005.


Statistics:

13 students sent a solution.
10 points:Acsai Péter, Gál Tibor, Kisfaludi-Bak Sándor, Kiss 987 Antal, Kovács 129 Péter, Molnár Csaba, Ozsvárt László, Stippinger Marcell, Szoldatics András, Ureczky Bálint.
8 points:1 student.
6 points:1 student.
0 point:1 student.

Our web pages are supported by:   Ericsson   Cognex   Emberi Erőforrás Támogatáskezelő   Emberi Erőforrások Minisztériuma   Nemzeti Tehetség Program    
MTA Energiatudományi Kutatóközpont   MTA Wigner Fizikai Kutatóközpont     Nemzeti
Kulturális Alap   ELTE   Morgan Stanley