Twin 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 all twin primes less than 2000 in increasing order.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

*NOTHING*

Sample output:

3,5
5,7
11,13
17,19
29,31
41,43
59,61
71,73
101,103
107,109
137,139
149,151
179,181
191,193
197,199
227,229
239,241
269,271
281,283
311,313
347,349
419,421
431,433
461,463
521,523
569,571
599,601
617,619
641,643
659,661
809,811
821,823
827,829
857,859
881,883
1019,1021
1031,1033
1049,1051
1061,1063
1091,1093
1151,1153
1229,1231
1277,1279
1289,1291
1301,1303
1319,1321
1427,1429
1451,1453
1481,1483
1487,1489
1607,1609
1619,1621
1667,1669
1697,1699
1721,1723
1787,1789
1871,1873
1877,1879
1931,1933
1949,1951
1997,1999

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1irori620.70092007/08/21 22:28:440B / 29B / 32B
2hirose650.39032007/08/21 19:17:440B / 32B / 27B
3irori(alt)680.96132007/08/21 22:32:490B / 29B / 38B
4ksk690.96912007/08/18 15:24:180B / 26B / 42B
5shinh700.80992007/08/22 01:34:430B / 32B / 35B
6kinaba760.59272007/08/18 23:52:580B / 32B / 44B
7m.ukai790.99062007/08/16 17:00:570B / 39B / 35B
8niha900.96312007/08/18 03:33:250B / 42B / 48B
9usa(rehabilitation)1010.07522007/08/13 20:49:2747B / 27B / 26B
10eban1080.98562007/08/15 22:12:410B / 53B / 51B
11usa1180.76062007/08/14 01:48:550B / 62B / 50B
12kinaba550.38272007/08/23 15:01:590B / 28B / 24B
13hirose600.36982007/08/23 11:47:140B / 30B / 25B
14eban710.38242007/09/10 02:07:070B / 39B / 30B
15kaki841.46412007/10/14 20:20:500B / 39B / 43B
16tabasa1750.35512007/10/01 12:05:3014B / 95B / 42B

Perl _

RankUserSizeTimeDateStatistics
1ySas580.29952007/08/18 23:39:324B / 23B / 30B
2unau670.82762007/08/19 14:59:120B / 32B / 35B
3shinh740.06292007/08/22 09:15:080B / 34B / 39B
4ott840.07472007/08/18 05:58:140B / 36B / 47B

Python _

RankUserSizeTimeDateStatistics
1hirose670.29642007/08/10 12:16:250B / 34B / 31B
2kt3k710.64582007/08/23 06:15:440B / 35B / 35B
3zetamatta1090.15112007/08/11 01:39:090B / 60B / 36B
4hiro.suzuki 630.30402007/08/23 22:54:510B / 31B / 31B
5Mark Byers650.32612007/08/24 16:55:280B / 27B / 36B
6kt3k680.45982007/09/21 13:06:280B / 34B / 33B
7pankdm680.18702010/05/22 02:19:161B / ?B / ?B
8potato990.18782016/07/30 03:26:290B / ?B / ?B
9Vim Lover1100.79082016/07/30 03:24:250B / ?B / ?B
10Bakuriu1411.50982009/08/22 22:43:120B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1unau960.74742007/08/17 20:02:330B / ?B / ?B
2o-cn680.25192010/01/08 06:04:290B / ?B / ?B
3pooq820.68462008/10/17 23:14:290B / 32B / 49B

Scheme _

RankUserSizeTimeDateStatistics
1pla1070.53962007/08/18 08:17:330B / 54B / 41B
2murky-satyr1030.13962008/07/07 03:40:340B / 43B / 46B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima880.71102007/08/16 10:48:430B / 35B / 42B

Arc _

RankUserSizeTimeDateStatistics
1murky-satyr785.34542009/12/30 02:24:190B / 36B / 32B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr1032.30682010/05/31 12:41:350B / 60B / 38B

Io _

RankUserSizeTimeDateStatistics
1murky-satyr702.21992008/11/03 10:04:390B / 38B / 29B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee550.76262011/06/30 14:44:500B / 26B / 29B
2murky-satyr561.29802008/11/03 10:08:030B / 27B / 29B
3Tomac560.78002011/09/29 14:30:450B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1rickrickrick1050.83452007/08/20 14:46:420B / 59B / 31B
2murky-satyr790.18942008/11/03 10:12:270B / 46B / 23B
3rickrickrick1020.66682007/08/31 20:08:080B / 59B / 29B

Xtal _

RankUserSizeTimeDateStatistics
1eban1090.62352007/08/19 18:31:370B / 54B / 54B
2teebee(murky-satyr)660.03322012/01/02 11:02:230B / 30B / 35B
3murky-satyr670.13972008/11/03 12:18:090B / 31B / 35B

PARI/GP _

RankUserSizeTimeDateStatistics
1pooq400.01872012/03/27 12:24:210B / 25B / 15B
2teebee450.04002012/03/27 10:05:240B / 30B / 15B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr790.36602008/07/03 21:15:450B / 34B / 44B

Prolog _

RankUserSizeTimeDateStatistics
1yooskeh820.25862007/08/22 15:28:290B / 39B / 39B

BASIC _

RankUserSizeTimeDateStatistics
1pooq810.72372007/08/23 00:08:290B / 50B / 21B
2yt820.21472007/08/22 13:55:560B / ?B / ?B
3*yuko*690.03502011/10/08 19:38:350B / 41B / 20B
4pooq790.66372007/08/23 18:07:470B / 48B / 22B
5yt810.22592007/08/23 13:13:560B / ?B / ?B

Erlang _

RankUserSizeTimeDateStatistics
151b1680.68972007/08/18 15:33:170B / 82B / 78B
251b1240.80942007/12/10 19:30:410B / 59B / 61B
3moriA1401.02182007/08/23 23:38:110B / 78B / 59B

J _

RankUserSizeTimeDateStatistics
1pooq470.81322007/08/21 23:16:250B / 14B / 33B
2irori540.59282007/08/22 22:24:090B / 15B / 36B
3I., S.360.04792011/10/30 15:06:120B / 11B / 25B
4kinaba450.08482007/11/11 21:41:290B / 12B / 33B
5medialuna790.03522014/08/19 22:36:370B / ?B / ?B

C _

RankUserSizeTimeDateStatistics
151b770.03722007/08/13 11:56:070B / 38B / 39B
27gyou790.04672007/08/10 22:50:490B / 38B / 41B
3not(51b)720.00012010/11/17 14:11:440B / 32B / 40B
451b760.03572007/08/28 22:14:500B / 37B / 39B

C++ _

RankUserSizeTimeDateStatistics
1jhon.hzr1430.04262007/08/21 15:40:540B / ?B / ?B

D _

RankUserSizeTimeDateStatistics
151b870.06782007/08/13 12:10:140B / 44B / 41B
251b850.06562007/08/28 22:16:100B / 42B / 40B

OCaml _

RankUserSizeTimeDateStatistics
1kozima830.15282007/08/22 00:54:590B / 45B / 33B
2ksk850.14982007/08/22 22:54:430B / 46B / 36B
3m.ukai910.37982007/08/20 11:15:310B / 49B / 39B
4ksk800.49162007/08/23 10:42:310B / 43B / 33B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa950.17292007/08/23 01:20:460B / ?B / ?B
2konn(FER)980.04372007/08/22 23:35:420B / ?B / ?B
3moriA990.04552007/08/10 02:17:320B / 52B / 41B
4konn(ERAT)1090.06602007/08/22 00:46:510B / ?B / ?B
5konn1210.06872007/08/22 00:19:220B / ?B / ?B
6konn(MR)2220.13292007/08/22 23:33:330B / ?B / ?B
7notogawa840.08532007/08/23 23:56:140B / 50B / 33B
8moriA840.08202007/08/24 00:52:190B / 46B / 35B
9tanakh930.20512007/08/23 10:36:250B / 55B / 34B

Ada _

RankUserSizeTimeDateStatistics
1yt2040.03672007/08/22 10:04:190B / ?B / ?B

Java _

RankUserSizeTimeDateStatistics
17gyou1520.43212007/08/10 23:27:460B / 92B / 54B
2teebee941.03092011/07/04 05:05:330B / 48B / 44B
3pooq1330.31362008/11/17 19:53:500B / 78B / 50B
4murky-satyr1420.40342008/11/03 15:00:080B / 86B / 50B

Pascal _

RankUserSizeTimeDateStatistics
1yt1390.05982007/08/22 10:31:580B / ?B / ?B
2*yuko*1140.01502014/03/01 21:51:060B / 74B / 31B
3uru1250.02942009/04/26 00:18:560B / 85B / 28B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*830.00032011/10/08 12:47:440B / 49B / 32B

Nemerle _

RankUserSizeTimeDateStatistics
1murky-satyr990.37982008/11/03 09:14:570B / 55B / 43B

COBOL _

RankUserSizeTimeDateStatistics
1*yuko*2690.37262011/10/08 19:42:360B / 190B / 36B

Maxima _

RankUserSizeTimeDateStatistics
1mitchs (pooq)660.23022015/09/14 22:46:470B / 38B / 25B
2pooq770.25912010/12/11 05:35:290B / 47B / 26B

Octave _

RankUserSizeTimeDateStatistics
1pooq650.22722011/10/17 10:23:480B / 35B / 30B

AWK _

RankUserSizeTimeDateStatistics
1unau750.57982007/08/22 16:01:050B / 40B / 34B
2teebee570.30582011/07/04 05:10:290B / 29B / 27B
3nn650.55542008/12/19 21:46:080B / 32B / 32B

sed _

RankUserSizeTimeDateStatistics
1eban5320.01952007/08/09 11:28:370B / 401B / 69B
2%204480.01212015/09/15 00:01:570B / 386B / 57B

Bash _

RankUserSizeTimeDateStatistics
1eban560.15332007/08/22 16:23:010B / 31B / 22B

Postscript _

RankUserSizeTimeDateStatistics
1ySas561.01352007/08/22 13:03:5524B / 19B / 13B
2yshl620.57452007/08/22 21:45:2128B / 24B / 10B
3yshl(not bin)1030.56632007/08/22 21:45:110B / 71B / 11B
4ySas (not bin)960.89852007/08/23 16:17:060B / 67B / 14B

R _

RankUserSizeTimeDateStatistics
1murky-satyr672.01002008/04/06 03:44:300B / 31B / 33B
251b701.78972008/04/05 22:29:040B / 31B / 36B

Brainfuck _

RankUserSizeTimeDateStatistics
1shinh6790.95332007/08/13 08:57:270B / 0B / 679B
2REM_VIPPER23170.42852007/08/09 10:32:100B / ?B / ?B
3nuko(cheat)5330.02532008/01/31 04:17:041B / 398B / 74B
4kaki6750.93132007/11/09 23:28:350B / 0B / 675B
5tabasa24770.42362007/10/01 12:12:050B / 0B / 2477B

Minus _

RankUserSizeTimeDateStatistics
1kt3k5320.00582007/08/10 04:45:140B / 410B / 62B

GolfScript _

RankUserSizeTimeDateStatistics
1flagitious370.80232007/12/18 00:54:090B / 12B / 25B
2leonid420.77962007/12/18 01:10:380B / 7B / 35B
3flagitious(sym)550.92982007/12/18 02:06:220B / 0B / 49B

gs2 _

RankUserSizeTimeDateStatistics
1whio170.08862015/11/04 02:32:258B / 6B / 3B

Unlambda _

RankUserSizeTimeDateStatistics
1kozima13500.00992007/08/15 10:56:270B / 475B / 875B
2kt3k14760.01192007/08/09 19:18:060B / 459B / 1017B
3hirose14980.00332007/08/10 21:31:220B / 459B / 1039B

z80 _

RankUserSizeTimeDateStatistics
1kodera830.01102008/01/18 02:59:1650B / 10B / 19B

DOS _

RankUserSizeTimeDateStatistics
1chocobi1272.30972008/11/17 01:37:5981B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1nn1021.61832009/12/23 14:07:090B / 53B / 42B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr470.25962008/07/25 05:13:070B / 21B / 23B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr612.05922009/12/30 02:06:090B / 31B / 30B

Language Ranking_

RankLangUserSizeScore
1gs2whio1710000
2JI., S.364722
3GolfScriptflagitious374594
4PARI/GPpooq404250
5gorubymurky-satyr473617
6Rubykinaba553090
7JavaScriptteebee553090
8PostscriptySas563035
9Basheban563035
10AWKteebee572982
11PerlySas582931
12Groovymurky-satyr612786
13Pythonhiro.suzuki 632698
14Octavepooq652615
15Xtalteebee(murky-satyr)662575
16Maximamitchs (pooq)662575
17Rmurky-satyr672537
18PHPo-cn682500
19BASIC*yuko*692463
20Iomurky-satyr702428
21Cnot(51b)722361
22Arcmurky-satyr782179
23Smalltalkmurky-satyr792151
24Luamurky-satyr792151
25OCamlksk802125
26Prologyooskeh822073
27z80kodera832048
28Fortran*yuko*832048
29Haskellnotogawa842023
30D51b852000
31Common LISPkozima881931
32Javateebee941808
33Nemerlemurky-satyr991717
34Vimnn1021666
35Schememurky-satyr1031650
36Clojuremurky-satyr1031650
37Pascal*yuko*1141491
38Erlang51b1241370
39DOSchocobi1271338
40C++jhon.hzr1431188
41Adayt204833
42COBOL*yuko*269631
43sed%20448379
44Minuskt3k532319
45Brainfucknuko(cheat)533318
46Unlambdakozima1350125

Referer

Note that, they may contain spoilers.

return top