Mathematical and Physical Journal
for High Schools
Issued by the MATFUND Foundation
Already signed up?
New to KöMaL?

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 April 15, 2005.


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.

Problems in Information Technology of KöMaL, March 2005