Next Primes

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Print the next 100 prime numbers from the given input.

- leonid

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

1

Sample output:

2
3
5
7
11
13
17
19
23
29
31
37
41
43
47
53
59
61
67
71
73
79
83
89
97
101
103
107
109
113
127
131
137
139
149
151
157
163
167
173
179
181
191
193
197
199
211
223
227
229
233
239
241
251
257
263
269
271
277
281
283
293
307
311
313
317
331
337
347
349
353
359
367
373
379
383
389
397
401
409
419
421
431
433
439
443
449
457
461
463
467
479
487
491
499
503
509
521
523
541

Sample input:_

24891747034814118260

Sample output:

24891747034814118293
24891747034814118331
24891747034814118341
24891747034814118379
24891747034814118461
24891747034814118617
24891747034814118631
24891747034814118671
24891747034814118707
24891747034814118727
24891747034814118821
24891747034814118863
24891747034814118883
24891747034814118923
24891747034814118929
24891747034814118937
24891747034814118983
24891747034814119039
24891747034814119111
24891747034814119133
24891747034814119219
24891747034814119249
24891747034814119253
24891747034814119259
24891747034814119283
24891747034814119333
24891747034814119423
24891747034814119517
24891747034814119531
24891747034814119541
24891747034814119591
24891747034814119613
24891747034814119633
24891747034814119639
24891747034814119657
24891747034814119711
24891747034814119723
24891747034814119727
24891747034814119763
24891747034814119819
24891747034814119841
24891747034814119847
24891747034814119919
24891747034814119937
24891747034814119939
24891747034814119987
24891747034814120023
24891747034814120063
24891747034814120143
24891747034814120171
24891747034814120261
24891747034814120267
24891747034814120297
24891747034814120327
24891747034814120381
24891747034814120407
24891747034814120413
24891747034814120443
24891747034814120519
24891747034814120563
24891747034814120689
24891747034814120717
24891747034814120719
24891747034814120731
24891747034814120801
24891747034814120807
24891747034814120873
24891747034814120893
24891747034814120897
24891747034814120927
24891747034814120941
24891747034814120987
24891747034814121013
24891747034814121017
24891747034814121139
24891747034814121157
24891747034814121173
24891747034814121289
24891747034814121331
24891747034814121337
24891747034814121373
24891747034814121401
24891747034814121547
24891747034814121569
24891747034814121589
24891747034814121599
24891747034814121641
24891747034814121661
24891747034814121673
24891747034814121691
24891747034814121701
24891747034814121727
24891747034814121827
24891747034814121863
24891747034814121899
24891747034814121907
24891747034814121971
24891747034814122009
24891747034814122031
24891747034814122081

Sample input:_

56508245802881034232156691968972043978104221315244553663485838615577312488413877

Sample output:

56508245802881034232156691968972043978104221315244553663485838615577312488414443
56508245802881034232156691968972043978104221315244553663485838615577312488414479
56508245802881034232156691968972043978104221315244553663485838615577312488414581
56508245802881034232156691968972043978104221315244553663485838615577312488414627
56508245802881034232156691968972043978104221315244553663485838615577312488414699
56508245802881034232156691968972043978104221315244553663485838615577312488414843
56508245802881034232156691968972043978104221315244553663485838615577312488414867
56508245802881034232156691968972043978104221315244553663485838615577312488415251
56508245802881034232156691968972043978104221315244553663485838615577312488415449
56508245802881034232156691968972043978104221315244553663485838615577312488415571
56508245802881034232156691968972043978104221315244553663485838615577312488415587
56508245802881034232156691968972043978104221315244553663485838615577312488415791
56508245802881034232156691968972043978104221315244553663485838615577312488415907
56508245802881034232156691968972043978104221315244553663485838615577312488415953
56508245802881034232156691968972043978104221315244553663485838615577312488415991
56508245802881034232156691968972043978104221315244553663485838615577312488415997
56508245802881034232156691968972043978104221315244553663485838615577312488416189
56508245802881034232156691968972043978104221315244553663485838615577312488416211
56508245802881034232156691968972043978104221315244553663485838615577312488416441
56508245802881034232156691968972043978104221315244553663485838615577312488416679
56508245802881034232156691968972043978104221315244553663485838615577312488416693
56508245802881034232156691968972043978104221315244553663485838615577312488416813
56508245802881034232156691968972043978104221315244553663485838615577312488416937
56508245802881034232156691968972043978104221315244553663485838615577312488416957
56508245802881034232156691968972043978104221315244553663485838615577312488417009
56508245802881034232156691968972043978104221315244553663485838615577312488417057
56508245802881034232156691968972043978104221315244553663485838615577312488417311
56508245802881034232156691968972043978104221315244553663485838615577312488417461
56508245802881034232156691968972043978104221315244553663485838615577312488417533
56508245802881034232156691968972043978104221315244553663485838615577312488417803
56508245802881034232156691968972043978104221315244553663485838615577312488417843
56508245802881034232156691968972043978104221315244553663485838615577312488417989
56508245802881034232156691968972043978104221315244553663485838615577312488418239
56508245802881034232156691968972043978104221315244553663485838615577312488418469
56508245802881034232156691968972043978104221315244553663485838615577312488418529
56508245802881034232156691968972043978104221315244553663485838615577312488418883
56508245802881034232156691968972043978104221315244553663485838615577312488419067
56508245802881034232156691968972043978104221315244553663485838615577312488419099
56508245802881034232156691968972043978104221315244553663485838615577312488419289
56508245802881034232156691968972043978104221315244553663485838615577312488419471
56508245802881034232156691968972043978104221315244553663485838615577312488419663
56508245802881034232156691968972043978104221315244553663485838615577312488419999
56508245802881034232156691968972043978104221315244553663485838615577312488420149
56508245802881034232156691968972043978104221315244553663485838615577312488420237
56508245802881034232156691968972043978104221315244553663485838615577312488420299
56508245802881034232156691968972043978104221315244553663485838615577312488420419
56508245802881034232156691968972043978104221315244553663485838615577312488420461
56508245802881034232156691968972043978104221315244553663485838615577312488420507
56508245802881034232156691968972043978104221315244553663485838615577312488421049
56508245802881034232156691968972043978104221315244553663485838615577312488421293
56508245802881034232156691968972043978104221315244553663485838615577312488421851
56508245802881034232156691968972043978104221315244553663485838615577312488421887
56508245802881034232156691968972043978104221315244553663485838615577312488421971
56508245802881034232156691968972043978104221315244553663485838615577312488422237
56508245802881034232156691968972043978104221315244553663485838615577312488422627
56508245802881034232156691968972043978104221315244553663485838615577312488422771
56508245802881034232156691968972043978104221315244553663485838615577312488422853
56508245802881034232156691968972043978104221315244553663485838615577312488422939
56508245802881034232156691968972043978104221315244553663485838615577312488422951
56508245802881034232156691968972043978104221315244553663485838615577312488423011
56508245802881034232156691968972043978104221315244553663485838615577312488423323
56508245802881034232156691968972043978104221315244553663485838615577312488423599
56508245802881034232156691968972043978104221315244553663485838615577312488423711
56508245802881034232156691968972043978104221315244553663485838615577312488423989
56508245802881034232156691968972043978104221315244553663485838615577312488424317
56508245802881034232156691968972043978104221315244553663485838615577312488424523
56508245802881034232156691968972043978104221315244553663485838615577312488425169
56508245802881034232156691968972043978104221315244553663485838615577312488425283
56508245802881034232156691968972043978104221315244553663485838615577312488425343
56508245802881034232156691968972043978104221315244553663485838615577312488425363
56508245802881034232156691968972043978104221315244553663485838615577312488425387
56508245802881034232156691968972043978104221315244553663485838615577312488425727
56508245802881034232156691968972043978104221315244553663485838615577312488425829
56508245802881034232156691968972043978104221315244553663485838615577312488426093
56508245802881034232156691968972043978104221315244553663485838615577312488426201
56508245802881034232156691968972043978104221315244553663485838615577312488426231
56508245802881034232156691968972043978104221315244553663485838615577312488426249
56508245802881034232156691968972043978104221315244553663485838615577312488426333
56508245802881034232156691968972043978104221315244553663485838615577312488426477
56508245802881034232156691968972043978104221315244553663485838615577312488426533
56508245802881034232156691968972043978104221315244553663485838615577312488426669
56508245802881034232156691968972043978104221315244553663485838615577312488426977
56508245802881034232156691968972043978104221315244553663485838615577312488427149
56508245802881034232156691968972043978104221315244553663485838615577312488427787
56508245802881034232156691968972043978104221315244553663485838615577312488427893
56508245802881034232156691968972043978104221315244553663485838615577312488427907
56508245802881034232156691968972043978104221315244553663485838615577312488427977
56508245802881034232156691968972043978104221315244553663485838615577312488428241
56508245802881034232156691968972043978104221315244553663485838615577312488428271
56508245802881034232156691968972043978104221315244553663485838615577312488428303
56508245802881034232156691968972043978104221315244553663485838615577312488428483
56508245802881034232156691968972043978104221315244553663485838615577312488428751
56508245802881034232156691968972043978104221315244553663485838615577312488428957
56508245802881034232156691968972043978104221315244553663485838615577312488429063
56508245802881034232156691968972043978104221315244553663485838615577312488429131
56508245802881034232156691968972043978104221315244553663485838615577312488429161
56508245802881034232156691968972043978104221315244553663485838615577312488429483
56508245802881034232156691968972043978104221315244553663485838615577312488429633
56508245802881034232156691968972043978104221315244553663485838615577312488429711
56508245802881034232156691968972043978104221315244553663485838615577312488429761

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid941.21992014/06/11 18:26:370B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1hallvabo1910.80562014/07/15 08:27:4854B / 77B / 50B

Pike _

RankUserSizeTimeDateStatistics
1teebee900.69022015/03/10 16:08:080B / 54B / 34B
2clock900.70482015/03/10 20:39:160B / 54B / 34B

PARI/GP _

RankUserSizeTimeDateStatistics
1mitchs420.55302014/09/18 16:56:080B / 28B / 14B
2teebee420.61002014/09/30 16:33:550B / 29B / 13B
3Hendrik420.60842014/10/12 09:42:590B / 28B / 14B
4leonid430.55152014/06/11 14:41:480B / 30B / 13B
5rolf430.60272014/07/17 06:33:220B / 30B / 13B

Bash _

RankUserSizeTimeDateStatistics
1mitchs520.59592016/03/06 04:16:160B / 31B / 19B
2Hendrik530.65482016/03/06 04:05:490B / 28B / 25B

GolfScript _

RankUserSizeTimeDateStatistics
1nooodl7300.10422014/06/11 22:17:210B / ?B / ?B

Groovy _

RankUserSizeTimeDateStatistics
1teebee635.30612014/06/13 06:11:330B / 46B / 16B

Scala _

RankUserSizeTimeDateStatistics
1teebee8314.06262014/06/15 01:57:250B / 66B / 8B

Language Ranking_

RankLangUserSizeScore
1PARI/GPmitchs4210000
2Bashmitchs528076
3Groovyteebee636666
4Scalateebee835060
5Piketeebee904666
6Rubyleonid944468
7Pythonhallvabo1912198
8GolfScriptnooodl730575

return top