Self Numbers

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

Self numbers are those that cannot be a form of (sum of digits of n) + n for some integer n.
Find all self numbers below 3000.
- leonid

Options

exec is denied

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

Sample input:_

*NOTHING*

Sample output:

1
3
5
7
9
20
31
42
53
64
75
86
97
108
110
121
132
143
154
165
176
187
198
209
211
222
233
244
255
266
277
288
299
310
312
323
334
345
356
367
378
389
400
411
413
424
435
446
457
468
479
490
501
512
514
525
536
547
558
569
580
591
602
613
615
626
637
648
659
670
681
692
703
714
716
727
738
749
760
771
782
793
804
815
817
828
839
850
861
872
883
894
905
916
918
929
940
951
962
973
984
995
1006
1021
1032
1043
1054
1065
1076
1087
1098
1109
1111
1122
1133
1144
1155
1166
1177
1188
1199
1210
1212
1223
1234
1245
1256
1267
1278
1289
1300
1311
1313
1324
1335
1346
1357
1368
1379
1390
1401
1412
1414
1425
1436
1447
1458
1469
1480
1491
1502
1513
1515
1526
1537
1548
1559
1570
1581
1592
1603
1614
1616
1627
1638
1649
1660
1671
1682
1693
1704
1715
1717
1728
1739
1750
1761
1772
1783
1794
1805
1816
1818
1829
1840
1851
1862
1873
1884
1895
1906
1917
1919
1930
1941
1952
1963
1974
1985
1996
2007
2022
2033
2044
2055
2066
2077
2088
2099
2110
2112
2123
2134
2145
2156
2167
2178
2189
2200
2211
2213
2224
2235
2246
2257
2268
2279
2290
2301
2312
2314
2325
2336
2347
2358
2369
2380
2391
2402
2413
2415
2426
2437
2448
2459
2470
2481
2492
2503
2514
2516
2527
2538
2549
2560
2571
2582
2593
2604
2615
2617
2628
2639
2650
2661
2672
2683
2694
2705
2716
2718
2729
2740
2751
2762
2773
2784
2795
2806
2817
2819
2830
2841
2852
2863
2874
2885
2896
2907
2918
2920
2931
2942
2953
2964
2975
2986
2997

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid390.02112012/02/07 02:11:320B / 16B / 21B
2uru410.02262012/02/08 23:42:040B / 22B / 17B
3yvl520.06862012/02/05 14:38:510B / 26B / 24B
4leonid (test)660.29512012/01/30 11:34:310B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1teebee440.19822012/02/08 06:23:140B / 17B / 26B
2tails470.14852012/02/02 20:29:500B / 15B / 31B
3test1490.04742012/01/31 17:16:490B / ?B / ?B
4test1(alt postmortem)450.42882012/02/15 17:55:120B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1leonid700.05152012/01/31 16:10:430B / 41B / 19B
2hallvabo720.17962012/01/31 03:24:550B / 39B / 22B
3recursive720.38962012/02/01 06:14:120B / 40B / 27B

PHP _

RankUserSizeTimeDateStatistics
1teebee610.07922012/02/08 05:48:021B / 27B / 33B
2clock680.97262012/02/12 13:27:020B / 28B / 39B

Scheme _

RankUserSizeTimeDateStatistics
1kaki950.06172012/02/06 08:47:230B / 44B / 43B
2kaki920.03592013/03/25 05:57:200B / 40B / 47B

Arc _

RankUserSizeTimeDateStatistics
1pooq841.31342012/02/13 11:26:000B / 37B / 39B

Io _

RankUserSizeTimeDateStatistics
1pooq970.18102012/02/03 05:57:280B / 65B / 24B
2teebee740.16512013/07/09 05:46:350B / 46B / 25B

JavaScript _

RankUserSizeTimeDateStatistics
1nn660.05402012/02/11 12:54:520B / 36B / 28B
2walkerneo1020.02402012/02/13 06:25:290B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1pooq930.09852012/02/03 10:23:020B / 55B / 28B

Xtal _

RankUserSizeTimeDateStatistics
1pooq790.02232012/10/27 10:05:390B / 44B / 35B

Icon _

RankUserSizeTimeDateStatistics
1teebee(pooq(teebee))910.04022012/04/06 20:56:010B / 54B / 31B
2pooq(teebee)930.03872012/04/06 20:40:260B / 55B / 32B
3teebee(pooq)960.04112012/04/05 23:45:020B / 57B / 33B
4pooq990.04902012/04/05 23:35:010B / 61B / 30B

BASIC _

RankUserSizeTimeDateStatistics
1pooq900.01322012/02/03 07:45:540B / 58B / 23B

J _

RankUserSizeTimeDateStatistics
1I., S.(JuneKim(c2.com))250.21872012/01/31 22:11:360B / 10B / 15B
2pooq320.08332012/02/03 11:57:080B / 8B / 24B
3medialuna620.10522014/08/13 18:53:520B / ?B / ?B

K _

RankUserSizeTimeDateStatistics
1teebee270.02392012/08/09 20:55:490B / 10B / 15B

C _

RankUserSizeTimeDateStatistics
1nai690.01282012/02/02 11:18:580B / 41B / 28B
2teebee710.01282012/02/02 15:34:290B / 38B / 33B
3ush730.01352012/02/01 11:21:240B / 43B / 30B
4inaniwa870.01542012/01/31 16:37:200B / 46B / 41B
5fill1050.07142012/01/31 01:43:230B / 55B / 50B

Haskell _

RankUserSizeTimeDateStatistics
1henkma740.18832012/02/12 01:40:040B / 47B / 22B
2notogawa760.26662012/02/11 22:57:070B / 47B / 26B

Java _

RankUserSizeTimeDateStatistics
1teebee910.25962012/02/02 15:36:550B / 53B / 36B
2ush930.07842012/02/01 11:57:540B / 60B / 31B
3emu101k4560.07632012/02/09 06:22:460B / 193B / 103B
4teebee(nai)861.15522012/02/13 16:06:090B / 56B / 28B

Pascal _

RankUserSizeTimeDateStatistics
1uru1690.01312012/02/24 23:09:580B / 112B / 44B

Maxima _

RankUserSizeTimeDateStatistics
1pooq1121.66142012/02/03 16:52:510B / 74B / 36B

AWK _

RankUserSizeTimeDateStatistics
1teebee580.01452012/02/04 20:10:180B / 29B / 29B

bc _

RankUserSizeTimeDateStatistics
1teebee550.01442012/02/04 19:54:140B / 26B / 28B

dc _

RankUserSizeTimeDateStatistics
1tails410.18852012/02/02 01:47:410B / 26B / 15B

R _

RankUserSizeTimeDateStatistics
1pooq820.33962012/10/26 11:30:030B / 44B / 36B

GolfScript _

RankUserSizeTimeDateStatistics
1twobit200.91812012/01/31 06:26:340B / 5B / 15B
2leonid200.89822012/01/31 17:29:360B / 5B / 15B
3tails201.22432012/02/01 16:49:460B / 5B / 15B
4clock210.45342012/02/11 00:44:380B / 7B / 14B
5nooodl260.38752012/02/02 00:41:540B / ?B / ?B
6KernelJ270.44512012/02/07 18:11:480B / ?B / ?B

Burlesque _

RankUserSizeTimeDateStatistics
1AndoDaan270.19592014/10/07 05:10:030B / 15B / 12B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*470.91102012/02/11 21:08:3433B / 8B / 3B

Vim _

RankUserSizeTimeDateStatistics
1clock480.08422012/02/02 03:01:304B / 35B / 9B

Groovy _

RankUserSizeTimeDateStatistics
1nn661.88002012/02/11 13:32:410B / 35B / 31B

Language Ranking_

RankLangUserSizeScore
1GolfScripttwobit2010000
2JI., S.(JuneKim(c2.com))258000
3Kteebee277407
4BurlesqueAndoDaan277407
5Rubyleonid395128
6dctails414878
7Perlteebee444545
8z80*yuko*474255
9Vimclock484166
10bcteebee553636
11AWKteebee583448
12PHPteebee613278
13JavaScriptnn663030
14Groovynn663030
15Cnai692898
16Pythonleonid702857
17Haskellhenkma742702
18Ioteebee742702
19Xtalpooq792531
20Rpooq822439
21Arcpooq842380
22Javateebee(nai)862325
23BASICpooq902222
24Iconteebee(pooq(teebee))912197
25Schemekaki922173
26Luapooq932150
27Maximapooq1121785
28Pascaluru1691183

return top