All Submissions


Problem Statement

Write a program to determine whether a given number is prime or not.
There are 10 positive integers in each input file, and each of them is less than 109.
Each line of the input contains one integer, corresponding to which you must print either "prime" or "composite" (without quotes, on a line by itself), based on whether the number is prime or not.

Sample Input


1
2
3
4
5
6
7
8
9
10


Sample Output


composite
prime
prime
composite
prime
composite
prime
composite
composite
composite


Problem Setter: Kaustubh Karkare

Languages: C,C++,C#,Java,JavaScript,Pascal,Perl,PHP,Python,Ruby,Text

Time Limit: 3 Second(s)
Score: 100 Point(s)
Input File Limit: 50000 Bytes

Submit

Login to post clarification.

No Clarifications.

Contest

Mode Judge

Passive

Online

Overall Rankings

RankNameScore
1xyz0
2Ams0
3TIP0
4team420
5xyzz0
6asdasdasd0
7abcd0
8khankhan0
9Gabriel0
10gigel0