HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


50897 - Prime Number

Guest
• Review clarifications (2)

Volume problems

• 50897 - Prime Number
• 50901 - Sum of Cubes-1
• 50957 - Divisible by 3
• 50898 - Draw the Pattern
• 50896 - Sum of Even Numbers
• 51115 - Pascal Triangle
• 51116 - The Star Triangle
• 50303 - Pattern
• 50882 - FizzBuzz

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Prime number or not.

 

Write a program that asks the user to type an integer number N and then show a message “Prime” or “Not Prime”.

Input: A positive integer

Output : The message Prime” or “Not Prime

Sample Input1:

Sample Input2:

5

9

Sample  Output1:

Sample  Output2:

Prime

Not Prime

 

Äëÿ îòïðàâêè ðåøåíèé íåîáõîäèìî âûïîëíèòü âõîä.

www.contester.ru