Sunday, May 12, 2019

URI 2674:: SOLUTION

URI Online Judge | 2674

Super Primes: Engage!

The Association of Indivisible Primes ​​elected a category of prime numbers called Super Primes. A number is considered super prime if in addition to being prime, all its digits are prime, too. The Association asked you to make a program to characterize the numbers.

Input

The input contains several test cases, each test case being an integer N (0 < N < 105) on a single line. The entry ends in the last test case.

Output

For each test case, the entry number classification is expected in a single line, which can be: "Super", if the number is a Super Prime; "Primo" if the number by a prime number only; Or "Nada" if the number has divisors beyond 1 and itself.
Input SampleOutput Sample
23
33
43
Super
Nada
Primo


[WAIT]


     First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one thing, just believe in yourself.....YOU CAN.....YOU KNOW....

See the ANSWER here...

No comments:

Post a Comment