Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
162
|
VK Cup 2012 Wild-card Round 1 |
FINISHED |
False |
7200 |
399739799 |
March 18, 2012, 3:10 p.m. |
Problems
B'A truncatable prime is a prime number which contains no zeros in decimal notation and all its suffixes are primes. 1 is considered to be not a prime. You are given a positive integer n. Figure out whether it is a truncatable prime. The only line of input contains an integer n (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89107). Output "YES" if n is a truncatable prime. Output "NO" otherwise. Quotes for clarity only. In the first sample 19 is a prime but its suffix 9 is not. In the second sample 9137, 137, 37 and 7 are all primes, so 9137 is a truncatable prime.'... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
1377824 |
Orfest |
I |
March 18, 2012, 6:07 p.m. |
OK |
Factor |
TESTS |
30 |
200 |
189132800 |
|
2500 |
1377418 |
anton.bannykh |
I |
March 18, 2012, 4:58 p.m. |
OK |
Factor |
TESTS |
30 |
200 |
189132800 |
|
2500 |
1377725 |
kohyatoh |
I |
March 18, 2012, 5:32 p.m. |
OK |
Factor |
TESTS |
30 |
220 |
189132800 |
|
2500 |
1377302 |
winger |
I |
March 18, 2012, 4:50 p.m. |
OK |
Factor |
TESTS |
30 |
220 |
189132800 |
|
2500 |
41009200 |
ReaLNero1 |
I |
July 31, 2018, 11:41 a.m. |
OK |
Factor |
TESTS |
30 |
372 |
102400 |
|
2500 |
1377696 |
natalia |
I |
March 18, 2012, 5:25 p.m. |
OK |
Factor |
TESTS |
30 |
940 |
189337600 |
|
2500 |
1377365 |
dkorduban |
I |
March 18, 2012, 4:54 p.m. |
OK |
Factor |
TESTS |
30 |
1000 |
189337600 |
|
2500 |
1377286 |
Bugman |
I |
March 18, 2012, 4:49 p.m. |
OK |
Factor |
TESTS |
30 |
1050 |
189337600 |
|
2500 |
1377692 |
eduardische |
I |
March 18, 2012, 5:23 p.m. |
OK |
Factor |
TESTS |
30 |
1170 |
189337600 |
|
2500 |
1377406 |
Cepera |
I |
March 18, 2012, 4:57 p.m. |
OK |
Factor |
TESTS |
30 |
1200 |
189337600 |
|
2500 |
remove filters
Back to search problems