6N plus minus one

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

When five or more prime numbers are given, denote the prime number by the formula of '6N+1' or '6N-1'(N is a larger integer than 0).

Options

exec is denied

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

Sample input:_

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

Sample output:

179 = 6 * 30 - 1
271 = 6 * 45 + 1
263 = 6 * 44 - 1
349 = 6 * 58 + 1
139 = 6 * 23 + 1
149 = 6 * 25 - 1
467 = 6 * 78 - 1
107 = 6 * 18 - 1
193 = 6 * 32 + 1
43 = 6 * 7 + 1
449 = 6 * 75 - 1
367 = 6 * 61 + 1
137 = 6 * 23 - 1
499 = 6 * 83 + 1
337 = 6 * 56 + 1
97 = 6 * 16 + 1
83 = 6 * 14 - 1
557 = 6 * 93 - 1
389 = 6 * 65 - 1
113 = 6 * 19 - 1
127 = 6 * 21 + 1
19 = 6 * 3 + 1
419 = 6 * 70 - 1
359 = 6 * 60 - 1
197 = 6 * 33 - 1
439 = 6 * 73 + 1
79 = 6 * 13 + 1
167 = 6 * 28 - 1
233 = 6 * 39 - 1
281 = 6 * 47 - 1
29 = 6 * 5 - 1
563 = 6 * 94 - 1
431 = 6 * 72 - 1
211 = 6 * 35 + 1
313 = 6 * 52 + 1
103 = 6 * 17 + 1
347 = 6 * 58 - 1
509 = 6 * 85 - 1
17 = 6 * 3 - 1
173 = 6 * 29 - 1
401 = 6 * 67 - 1
331 = 6 * 55 + 1
397 = 6 * 66 + 1
89 = 6 * 15 - 1
229 = 6 * 38 + 1
53 = 6 * 9 - 1
227 = 6 * 38 - 1
23 = 6 * 4 - 1
191 = 6 * 32 - 1
251 = 6 * 42 - 1
61 = 6 * 10 + 1
283 = 6 * 47 + 1
241 = 6 * 40 + 1
443 = 6 * 74 - 1
463 = 6 * 77 + 1
491 = 6 * 82 - 1
181 = 6 * 30 + 1
409 = 6 * 68 + 1
487 = 6 * 81 + 1
71 = 6 * 12 - 1
383 = 6 * 64 - 1
479 = 6 * 80 - 1
457 = 6 * 76 + 1
47 = 6 * 8 - 1
379 = 6 * 63 + 1
199 = 6 * 33 + 1
541 = 6 * 90 + 1
223 = 6 * 37 + 1
569 = 6 * 95 - 1
11 = 6 * 2 - 1
433 = 6 * 72 + 1
307 = 6 * 51 + 1
239 = 6 * 40 - 1
59 = 6 * 10 - 1
37 = 6 * 6 + 1
131 = 6 * 22 - 1
13 = 6 * 2 + 1
293 = 6 * 49 - 1
163 = 6 * 27 + 1
317 = 6 * 53 - 1
41 = 6 * 7 - 1
67 = 6 * 11 + 1
461 = 6 * 77 - 1
157 = 6 * 26 + 1
523 = 6 * 87 + 1
277 = 6 * 46 + 1
257 = 6 * 43 - 1
109 = 6 * 18 + 1
73 = 6 * 12 + 1
311 = 6 * 52 - 1
353 = 6 * 59 - 1
151 = 6 * 25 + 1
521 = 6 * 87 - 1
421 = 6 * 70 + 1
101 = 6 * 17 - 1
31 = 6 * 5 + 1
503 = 6 * 84 - 1
373 = 6 * 62 + 1
547 = 6 * 91 + 1
269 = 6 * 45 - 1

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock560.01142012/11/10 12:15:350B / 20B / 27B
2kaki600.01822012/11/23 01:38:140B / 18B / 34B
3jamesaxl1200.01222012/11/10 10:47:155B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1teebee470.01152012/11/11 02:18:510B / 19B / 21B
2Hem480.01112012/11/21 19:12:590B / 18B / 23B
3macik480.01192012/11/23 22:51:570B / ?B / ?B
4Terje K500.02332012/11/15 18:58:050B / 11B / 32B
5ninjalj600.01102012/11/14 01:42:500B / 22B / 30B
6smkt650.01102012/11/10 05:17:080B / 24B / 34B
7pla670.01102012/11/15 01:41:050B / 23B / 34B
8jamesaxl1020.01112012/11/21 03:55:080B / ?B / ?B
9jamesaxl470.01122012/11/25 01:17:110B / ?B / ?B
10jonathan camacho950.01112014/09/04 14:29:530B / 33B / 55B

Python _

RankUserSizeTimeDateStatistics
1hallvabo510.01882012/11/10 04:15:370B / 20B / 29B
2clock510.03952012/11/15 02:51:080B / 24B / 24B
3teebee510.01752012/11/22 06:27:090B / 24B / 24B
4Hendrik520.03142012/11/10 18:07:440B / 24B / 23B
5recursive520.01932012/11/16 01:15:010B / 24B / 23B
6jamesaxl990.04022012/11/23 08:28:200B / ?B / ?B
7xnor510.03182015/06/14 13:59:100B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1clock680.03782012/11/11 09:18:280B / 31B / 30B
2teebee680.03512012/11/11 09:27:320B / 31B / 30B

Scheme _

RankUserSizeTimeDateStatistics
1kaki720.06632012/11/15 00:27:220B / 29B / 27B
2kaki680.04102013/03/25 05:07:400B / 25B / 31B

Arc _

RankUserSizeTimeDateStatistics
1clock651.03112012/11/11 12:11:070B / 22B / 31B

Io _

RankUserSizeTimeDateStatistics
1pooq1000.10182012/11/12 00:45:080B / 58B / 30B

JavaScript _

RankUserSizeTimeDateStatistics
1clock560.01672012/11/10 11:35:570B / 25B / 28B
20mg560.03062012/11/10 11:54:530B / 25B / 28B
3nn560.02102012/11/10 16:17:210B / 25B / 28B
4Hendrik560.02022012/11/10 18:24:480B / 25B / 28B
5teebee560.01802012/11/10 22:02:320B / 25B / 28B
6o-cn560.02072012/11/14 10:05:370B / 25B / 28B

Lua _

RankUserSizeTimeDateStatistics
1desty1060.01112013/02/23 23:11:150B / 49B / 44B

Tcl _

RankUserSizeTimeDateStatistics
1clock870.02602012/11/15 14:17:230B / 49B / 22B

Xtal _

RankUserSizeTimeDateStatistics
1teebee830.01942012/11/11 01:43:490B / 35B / 41B
2clock830.01592012/11/13 18:47:510B / 35B / 41B
3pooq860.03442012/11/11 08:06:370B / 36B / 43B

Icon _

RankUserSizeTimeDateStatistics
1clock800.00532012/11/15 14:06:140B / 38B / 32B
2teebee800.01892012/11/22 06:10:310B / 38B / 33B

REXX _

RankUserSizeTimeDateStatistics
1teebee560.00932012/11/11 01:25:260B / 30B / 14B
2clock560.00682012/11/11 09:32:110B / 30B / 14B
3pooq760.04082012/11/10 23:30:420B / 33B / 30B

Cyan _

RankUserSizeTimeDateStatistics
1clock870.81372012/11/13 19:22:130B / 37B / 41B
2teebee870.91682012/11/22 17:13:580B / 38B / 41B
3pooq891.03232012/11/11 22:15:070B / 32B / 50B
4teebee(clock)821.01792012/11/24 03:58:410B / 32B / 41B

Prolog _

RankUserSizeTimeDateStatistics
1clock740.04022012/11/13 19:29:050B / 36B / 27B
2teebee740.05012012/11/17 23:43:540B / 36B / 27B
3pooq800.05442012/11/11 13:34:210B / 39B / 32B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*710.02512012/11/10 20:59:570B / 32B / 32B
2teebee710.01012012/11/10 21:51:060B / 32B / 32B
3pooq710.01172012/11/11 05:30:260B / 32B / 30B
4clock710.01332012/11/11 07:59:570B / 32B / 30B

J _

RankUserSizeTimeDateStatistics
1I., S.540.04612012/11/10 20:26:420B / 14B / 39B

K _

RankUserSizeTimeDateStatistics
1teebee530.01042012/11/23 01:04:400B / 13B / 33B

C _

RankUserSizeTimeDateStatistics
10mg760.01102012/11/10 12:18:410B / 34B / 36B
2clock760.01062012/11/10 12:22:480B / 34B / 36B
3nn760.01072012/11/10 16:10:150B / 34B / 36B
4teebee760.01402012/11/10 18:21:320B / 34B / 36B
5inaniwa760.01072012/11/10 21:45:310B / 34B / 36B
6nu760.01082012/11/11 03:18:340B / 36B / 34B
7Hendrik760.01112012/11/11 03:50:400B / 36B / 34B
8ush760.01232012/11/12 09:09:380B / 37B / 34B
9eiyuu760.01132012/11/18 16:21:140B / 34B / 36B
10amat790.01092012/11/10 22:20:420B / 36B / 37B
11fill840.01392012/11/17 20:15:070B / 40B / 38B
12smkt870.01082012/11/11 09:24:460B / 43B / 38B
13TokusiN760.01062012/12/04 01:31:410B / 34B / 36B

C++ _

RankUserSizeTimeDateStatistics
1smkt1400.00452012/11/14 09:21:370B / 79B / 50B
2Kipa001580.01052012/11/12 15:59:503B / ?B / ?B

D _

RankUserSizeTimeDateStatistics
1macik1060.01092012/11/23 23:42:210B / ?B / ?B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai910.03262012/11/22 12:35:480B / 43B / 37B

Haskell _

RankUserSizeTimeDateStatistics
1henkma870.01282012/11/17 06:06:120B / 43B / 35B
2notogawa870.02562012/11/17 21:43:200B / 44B / 35B
3tttaki1120.02302012/11/11 21:56:160B / 60B / 36B

Java _

RankUserSizeTimeDateStatistics
1teebee1450.14032012/11/22 03:27:220B / 88B / 45B
2clock1450.14112012/11/22 03:43:150B / 87B / 46B
3unbaba1520.09712012/11/23 00:35:520B / 85B / 53B

Pascal _

RankUserSizeTimeDateStatistics
1teebee950.00432012/11/17 21:48:470B / 55B / 30B
2uru950.00482012/11/17 22:22:210B / 55B / 30B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*690.00832012/11/10 22:01:450B / 39B / 25B
2clock690.00802012/11/11 11:02:370B / 39B / 25B
3teebee690.00622012/11/22 03:40:390B / 40B / 24B

C# _

RankUserSizeTimeDateStatistics
1Hendrik1380.06282012/11/10 19:57:080B / 80B / 46B
2teebee1380.06212012/11/10 21:14:070B / 80B / 46B
3clock1380.06392012/11/11 11:09:400B / 80B / 47B

Nemerle _

RankUserSizeTimeDateStatistics
1clock930.05902012/11/20 17:46:350B / 45B / 38B

Maxima _

RankUserSizeTimeDateStatistics
1teebee740.13992012/11/11 03:07:210B / 37B / 27B
2pooq740.13352012/11/11 07:21:200B / 37B / 27B
3clock740.12332012/11/11 09:44:130B / 37B / 27B

REBOL _

RankUserSizeTimeDateStatistics
1clock700.03062012/11/22 06:13:220B / 40B / 18B
2teebee700.03042012/11/22 06:23:360B / 39B / 22B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee810.10252012/11/22 04:30:290B / 40B / 32B

AWK _

RankUserSizeTimeDateStatistics
1teebee430.01092012/11/10 04:27:220B / 19B / 19B
2clock430.01312012/11/10 04:46:310B / 18B / 19B
3nn430.01072012/11/10 16:00:530B / 12B / 26B
4Hendrik430.01052012/11/11 05:32:260B / 18B / 19B

sed _

RankUserSizeTimeDateStatistics
1tails1770.26782015/06/15 01:19:230B / 64B / 89B

Bash _

RankUserSizeTimeDateStatistics
1clock390.00932012/11/20 18:56:470B / 24B / 10B

wake _

RankUserSizeTimeDateStatistics
1clock1090.24072012/11/20 18:53:020B / 42B / 55B

bc _

RankUserSizeTimeDateStatistics
1teebee760.01642012/11/10 22:18:410B / 35B / 31B
2clock760.00562012/11/11 10:05:430B / 35B / 31B

dc _

RankUserSizeTimeDateStatistics
1*yuko*400.01972012/11/10 19:31:050B / 25B / 11B
2clock400.01062012/11/11 10:22:270B / 25B / 11B

xgawk _

RankUserSizeTimeDateStatistics
1Hendrik430.01332012/11/11 05:34:000B / 18B / 19B
2teebee430.01482012/11/11 05:35:110B / 19B / 19B
3clock430.01692012/11/11 08:04:490B / 18B / 19B

R _

RankUserSizeTimeDateStatistics
1clock690.16562012/11/11 09:52:470B / 27B / 37B
2pooq690.16822012/11/11 10:45:420B / 29B / 38B
3teebee690.15862012/11/17 22:40:490B / 27B / 37B

QCL _

RankUserSizeTimeDateStatistics
1pooq910.03532012/11/11 08:41:510B / 48B / 33B
2clock910.02622012/11/11 09:14:560B / 48B / 33B
3teebee910.03182012/11/11 09:17:470B / 48B / 33B

Whitespace _

RankUserSizeTimeDateStatistics
1%201820.01982015/06/15 01:41:180B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1tails330.03812015/06/15 00:36:450B / 7B / 23B
2nooodl380.04062014/01/14 07:09:270B / ?B / ?B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu280.14512012/11/12 10:59:240B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1clock460.04872012/11/15 01:45:362B / 17B / 19B
2pla500.07042012/11/15 01:16:193B / 19B / 20B

Groovy _

RankUserSizeTimeDateStatistics
1teebee721.13822012/11/11 02:02:050B / 43B / 21B
2clock721.12802012/11/15 02:54:310B / 43B / 21B
3nn731.05602012/11/10 16:47:050B / 43B / 21B

Logo _

RankUserSizeTimeDateStatistics
1teebee690.01242012/11/10 22:50:140B / 43B / 16B

Language Ranking_

RankLangUserSizeScore
1FlogScriptmilieu2810000
2GolfScripttails338484
3Bashclock397179
4dc*yuko*407000
5AWKteebee436511
6xgawkHendrik436511
7Vimclock466086
8Perlteebee475957
9Pythonhallvabo515490
10Kteebee535283
11JI., S.545185
12JavaScriptclock565000
13Rubyclock565000
14REXXteebee565000
15Arcclock654307
16PHPclock684117
17Schemekaki684117
18Fortran*yuko*694057
19Logoteebee694057
20Rclock694057
21REBOLclock704000
22BASIC*yuko*713943
23Groovyteebee723888
24Maximateebee743783
25Prologclock743783
26C0mg763684
27bcteebee763684
28Iconclock803500
29Asymptoteteebee813456
30Cyanteebee(clock)823414
31Xtalteebee833373
32Tclclock873218
33Haskellhenkma873218
34QCLpooq913076
35OCamlm.ukai913076
36Nemerleclock933010
37Pascalteebee952947
38Iopooq1002800
39Dmacik1062641
40Luadesty1062641
41wakeclock1092568
42C#Hendrik1382028
43C++smkt1402000
44Javateebee1451931
45sedtails1771581
46Whitespace%201821538

return top