numof 1 bits in 0 to 255

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 out a series of digits corresponding to the number of '1' bits in the binary representations of the numbers 0, 1, 2...255.

Options

exec is denied

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

Sample input:_

*NOTHING*

Sample output:

0112122312232334122323342334344512232334233434452334344534454556122323342334344523343445344545562334344534454556344545564556566712232334233434452334344534454556233434453445455634454556455656672334344534454556344545564556566734454556455656674556566756676778

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1ksk320.06032009/04/22 21:57:371B / 13B / 18B
2leonid330.00022009/04/22 01:54:000B / 15B / 18B
3uru330.00022009/04/22 23:12:400B / 16B / 17B
4kaki330.03962009/04/23 01:50:410B / 15B / 18B
5eban350.02722009/04/23 01:01:070B / 21B / 13B
6primo350.03422009/04/23 08:18:210B / 15B / 20B
7leonid290.01462009/04/28 23:32:501B / 10B / 18B
8rkneufeld380.00012010/02/19 12:10:430B / 17B / 20B
9erauqssidlroweht390.00012010/02/19 11:58:370B / 20B / 18B
10tabasa450.03542009/06/03 22:12:330B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1leonid270.00022009/04/23 02:28:540B / 17B / 8B
2eban320.01522009/04/22 22:46:330B / 22B / 7B
3leonid250.04962009/04/28 23:38:450B / 16B / 8B
4gerut1000.01162015/01/08 22:49:470B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1tryeng480.06982009/04/22 10:54:430B / ?B / ?B
2kt3k480.03162009/04/22 20:36:250B / 25B / 18B
3leonid480.84022009/04/26 22:19:150B / 25B / 18B
4Defenestrator480.04472009/04/28 15:34:310B / 25B / 18B
5hallvabo560.05222009/04/22 11:32:010B / 32B / 18B
6primo580.08002009/04/22 10:50:450B / 33B / 20B
7xnor460.03032020/09/06 14:19:310B / 25B / 18B
8Erik the Outgolfer480.03322020/09/11 02:52:220B / 25B / 18B
9user_1480.03002020/11/29 04:23:320B / ?B / ?B
10JoKing510.03002020/09/06 20:23:160B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1albanian_laundromat590.04532023/10/07 14:39:140B / 36B / 20B

PHP _

RankUserSizeTimeDateStatistics
1o-cn350.01492010/01/06 01:37:540B / ?B / ?B

Pike _

RankUserSizeTimeDateStatistics
1pooq660.04632014/03/03 17:12:000B / 37B / 27B

Scheme _

RankUserSizeTimeDateStatistics
1kaki340.02832019/09/04 22:31:230B / 23B / 8B
2pla350.75712009/05/03 06:57:300B / 25B / 8B

Common LISP _

RankUserSizeTimeDateStatistics
1leonid350.06132009/04/27 15:09:380B / 25B / 8B
2Defenestrator421.20062009/04/28 15:27:370B / 28B / 11B
3kozima490.16972009/04/22 08:39:590B / 30B / 17B

Arc _

RankUserSizeTimeDateStatistics
1pooq454.53102009/10/11 18:39:130B / 31B / 9B

LilyPond _

RankUserSizeTimeDateStatistics
1KirarinSnow380.76652009/12/21 12:46:010B / 26B / 9B

Io _

RankUserSizeTimeDateStatistics
1pooq500.61982009/04/24 22:52:320B / 28B / 22B
2pooq400.36232009/04/29 16:25:480B / 24B / 15B
351b420.50032009/04/29 16:13:480B / 25B / 16B

JavaScript _

RankUserSizeTimeDateStatistics
1nn550.03252009/04/22 21:34:370B / 24B / 30B
2murky-satyr450.06802009/05/03 17:58:080B / 21B / 23B
3FizzyTea450.01412014/12/23 23:47:430B / 21B / 24B
4nn460.01842009/05/01 17:53:300B / 22B / 23B

Lua _

RankUserSizeTimeDateStatistics
1pooq790.00022009/04/25 09:52:070B / 53B / 16B
2yamaya620.00012010/01/06 23:20:200B / 37B / 21B
3murky-satyr660.00022009/05/03 19:57:430B / 40B / 18B
4AndoDaan700.00012014/08/06 16:35:080B / ?B / ?B

Xtal _

RankUserSizeTimeDateStatistics
1pooq510.07052009/04/25 02:10:520B / 30B / 21B

REXX _

RankUserSizeTimeDateStatistics
1*yuko*430.00012013/03/25 18:29:350B / 26B / 16B
2pooq540.02482012/04/13 22:48:570B / 39B / 9B

PARI/GP _

RankUserSizeTimeDateStatistics
1alephalpha380.02032022/01/16 11:56:320B / 27B / 11B

Prolog _

RankUserSizeTimeDateStatistics
1pooq770.00022009/04/27 20:50:370B / 38B / 33B
2pooq(2)470.38612009/05/25 08:45:410B / 29B / 18B
3pooq730.03762009/05/03 02:03:280B / 40B / 28B

Forth _

RankUserSizeTimeDateStatistics
151b590.04992009/04/26 16:09:550B / 33B / 8B
2impomatic530.04562009/08/15 17:46:050B / ?B / ?B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*620.19982009/04/28 22:43:150B / 36B / 23B
2pooq640.09042009/04/24 18:14:360B / 41B / 17B
3*yuko*410.42982009/05/02 08:33:090B / 25B / 14B
4pooq460.46982009/04/29 19:06:030B / 27B / 17B

Erlang _

RankUserSizeTimeDateStatistics
151b1030.61052009/04/26 16:21:550B / 52B / 47B
251b880.37432009/04/29 15:28:500B / 44B / 40B

J _

RankUserSizeTimeDateStatistics
1pooq170.52482009/04/23 23:45:110B / 8B / 8B
2I., S.(pooq)150.03712011/07/20 23:07:370B / 5B / 9B
3pooq160.56972009/04/29 01:47:340B / 5B / 10B
4randomra170.03882014/12/23 21:34:310B / ?B / ?B
5medialuna180.02272014/08/28 22:13:110B / ?B / ?B

K _

RankUserSizeTimeDateStatistics
1teebee160.01202012/07/04 07:48:390B / 7B / 9B

Jelly _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer60.15542021/04/04 09:05:355B / 1B / 0B

C _

RankUserSizeTimeDateStatistics
1hinoe480.06972009/04/27 20:28:360B / 30B / 18B
2leonid510.00032009/04/27 12:58:160B / 31B / 20B
3leoind510.00022009/04/28 18:08:510B / 31B / 20B
451b520.01972009/04/27 01:45:150B / 29B / 23B
5tryeng560.07312009/04/24 20:22:300B / ?B / ?B
6G.w.790.02842009/04/26 17:32:020B / 40B / 39B
751b470.03972009/08/07 21:26:130B / 26B / 21B
8%20670.00012014/11/02 10:14:140B / 35B / 32B
9inaniwa690.02982009/10/29 17:18:160B / ?B / ?B

D _

RankUserSizeTimeDateStatistics
151b690.02962009/04/25 23:18:490B / 35B / 32B
251b640.02532009/04/29 18:12:490B / 36B / 25B

Go _

RankUserSizeTimeDateStatistics
1uru880.00082009/12/31 15:47:450B / 59B / 25B

OCaml _

RankUserSizeTimeDateStatistics
1ksk680.17982009/04/26 14:16:130B / 36B / 29B
2xsd1050.07342009/09/20 13:38:220B / 66B / 24B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa420.02032009/04/23 00:00:530B / ?B / ?B
2Defenestrator440.09582009/04/28 13:00:160B / 26B / 18B

Java _

RankUserSizeTimeDateStatistics
1uru1010.24942009/04/23 19:47:070B / 71B / 25B
2leonid1010.24972009/04/24 07:05:160B / 72B / 24B
3Patashu1190.14952009/04/25 22:41:360B / ?B / ?B
4tryeng1200.14812009/04/23 17:50:280B / 76B / 39B
5teebee670.12682010/11/07 11:22:480B / ?B / ?B
6uru730.09322010/01/31 22:48:060B / 50B / 21B
7Patashu900.09262010/02/24 12:23:200B / 54B / 34B
8Patashu (tryeng++)1181.90982009/05/10 20:20:130B / ?B / ?B

Pascal _

RankUserSizeTimeDateStatistics
1pooq950.04862009/04/27 12:22:200B / 64B / 20B
2uru980.06562009/04/26 21:26:410B / 65B / 23B
3tryeng1110.00022009/04/23 09:38:160B / 72B / 24B
4*yuko*860.01312011/11/10 21:09:330B / 56B / 25B

Fortran _

RankUserSizeTimeDateStatistics
1pooq720.00022009/04/25 11:57:370B / 44B / 19B
2*yuko*380.01292011/11/10 05:52:250B / 25B / 13B

COBOL _

RankUserSizeTimeDateStatistics
1*yuko*1920.00022011/07/20 22:41:180B / 142B / 26B

Maxima _

RankUserSizeTimeDateStatistics
1pooq831.79992009/04/25 08:41:200B / 51B / 25B
2pooq340.35572009/08/09 12:48:590B / 22B / 12B

Octave _

RankUserSizeTimeDateStatistics
1inaniwa330.24102011/10/20 23:11:120B / 23B / 10B
2pooq371.82592011/10/20 22:49:130B / 24B / 13B

REBOL _

RankUserSizeTimeDateStatistics
1pooq820.27982009/04/25 13:02:030B / 48B / 15B
2teebee(pooq)780.04782012/07/19 06:04:020B / 42B / 17B

Asymptote _

RankUserSizeTimeDateStatistics
1pooq761.86802009/04/25 09:05:500B / 43B / 31B
2teebee(pooq)610.15272011/12/23 06:45:520B / 33B / 27B
3pooq712.25992009/04/29 09:07:480B / 37B / 33B

AWK _

RankUserSizeTimeDateStatistics
1yamaya460.01732009/04/25 13:00:030B / 28B / 17B
2nn550.09092009/04/22 21:34:510B / 27B / 28B
3eban550.27722009/04/23 01:26:580B / 30B / 24B
4nn380.03242009/04/29 00:03:190B / 23B / 15B

sed _

RankUserSizeTimeDateStatistics
1leonid460.03982009/04/26 22:44:410B / 25B / 15B
2kt3k480.01152009/04/26 23:03:270B / 27B / 14B

Bash _

RankUserSizeTimeDateStatistics
1yamaya520.11122009/04/23 23:51:450B / 18B / 25B
2eban610.06982009/04/23 00:53:410B / 27B / 23B
3yamaya400.01922012/06/22 13:56:450B / 14B / 23B
4test(yamaya)440.00012014/12/21 17:57:570B / ?B / ?B
5eban460.00992022/02/17 20:32:450B / 20B / 21B

dc _

RankUserSizeTimeDateStatistics
1int-e (tails)230.00012015/02/01 05:33:380B / 18B / 5B
2*yuko*240.00012015/01/28 22:19:390B / 17B / 7B
3tails250.00012015/01/26 02:20:170B / 21B / 4B

m4 _

RankUserSizeTimeDateStatistics
151b630.04032009/04/29 15:45:460B / 36B / 27B

Postscript _

RankUserSizeTimeDateStatistics
1ySas302.14622009/04/28 21:23:279B / 9B / 12B
2yshl(bin)350.41982009/04/26 00:00:0618B / 11B / 6B
3ySas (no bin)500.36932009/04/28 21:24:150B / 37B / 11B
4yshl570.33932009/04/26 00:00:540B / 41B / 5B
5ySas270.66872009/04/29 07:33:0913B / 10B / 4B
6ySas (no bin)430.35902009/04/29 07:35:200B / 31B / 3B

R _

RankUserSizeTimeDateStatistics
1pooq533.21182009/04/25 00:22:230B / 29B / 20B
2pooq390.16432012/12/09 05:15:140B / 21B / 16B
3murky-satyr402.91992009/05/03 19:33:480B / 21B / 17B

Brainfuck _

RankUserSizeTimeDateStatistics
1ksk700.03012009/04/28 00:08:390B / 0B / 70B
2kt3k1080.01852009/04/26 20:52:450B / 0B / 108B
3mitchs (ksk)520.01082015/01/08 16:17:210B / 0B / 52B
4ksk570.01962009/04/30 22:26:370B / 0B / 57B

Whitespace _

RankUserSizeTimeDateStatistics
1kaz_u(%20)670.01912016/11/24 23:13:110B / 0B / 0B
2%20920.00452014/11/02 10:30:170B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1kt3k110.10972009/04/22 20:53:400B / 2B / 9B
2leonid110.06992009/04/22 21:05:540B / 2B / 9B
3tryeng110.06942009/04/23 09:58:410B / 2B / 9B
4leonid (alt)110.39312009/04/24 13:17:230B / 2B / 9B

gs2 _

RankUserSizeTimeDateStatistics
1nooodl50.09582014/09/20 23:00:492B / ?B / ?B

Nibbles _

RankUserSizeTimeDateStatistics
1darrenks70.01802022/02/17 23:25:376B / ?B / ?B
2tails80.02302022/02/17 22:50:427B / 1B / 0B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu110.44462010/08/18 18:55:060B / ?B / ?B
2zzo38140.18022010/04/10 06:39:310B / ?B / ?B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik120.02372023/09/09 19:50:000B / 8B / 4B
2mroman270.02792014/08/28 22:35:000B / ?B / ?B

Unlambda _

RankUserSizeTimeDateStatistics
1irori2220.09962009/04/26 15:05:100B / 107B / 115B

Lazy-K _

RankUserSizeTimeDateStatistics
151b3670.15982009/04/26 20:05:320B / 189B / 178B
2irori3870.16952009/04/26 12:30:510B / 198B / 189B
351b1390.09372009/05/06 23:46:330B / 72B / 67B
4irori(translation of hinoe's Universal Lambda)1420.14262009/05/02 00:26:180B / 74B / 68B

Grass _

RankUserSizeTimeDateStatistics
1irori2340.52172009/04/26 18:02:480B / 234B / 0B

Universal Lambda _

RankUserSizeTimeDateStatistics
1hinoe140.08242009/04/26 17:41:1711B / 3B / 0B
2irori180.08132009/04/26 13:27:3412B / 3B / 3B
3hinoe(no bin)290.35682009/04/27 20:31:310B / 20B / 9B

D-compile-time _

RankUserSizeTimeDateStatistics
151b1781.20282009/04/26 23:41:520B / 112B / 54B
251b1090.44102009/04/29 15:14:190B / 69B / 34B

z80 _

RankUserSizeTimeDateStatistics
1kodera120.39942009/04/24 03:03:426B / 3B / 2B
2ySas120.51942009/04/26 09:00:086B / 3B / 2B

DOS _

RankUserSizeTimeDateStatistics
1*yuko*164.34372011/12/18 17:30:099B / 6B / 1B
2chocobi222.60002009/08/19 00:30:0015B / 6B / 1B

Vim _

RankUserSizeTimeDateStatistics
1(pla)310.02542020/09/06 19:17:443B / 20B / 8B
2pla320.08352009/12/17 06:08:383B / 21B / 8B
3nn420.06352009/12/13 01:33:004B / 22B / 14B

goruby _

RankUserSizeTimeDateStatistics
1leonid230.11032009/04/26 14:17:080B / 9B / 11B
2leonid220.04942009/04/29 11:14:230B / 12B / 9B

Groovy _

RankUserSizeTimeDateStatistics
1uru313.52312009/04/25 01:16:190B / 24B / 6B
2nn314.67152009/04/25 01:44:200B / 24B / 6B
3murky-satyr314.70982009/04/25 13:03:420B / 24B / 6B

Scala _

RankUserSizeTimeDateStatistics
1pooq403.47862011/02/16 20:38:020B / 30B / 8B

Logo _

RankUserSizeTimeDateStatistics
1teebee350.02752011/03/23 07:32:450B / 22B / 8B
2pooq500.01912011/03/22 18:46:160B / 29B / 11B

Language Ranking_

RankLangUserSizeScore
1gs2nooodl510000
2JellyErik the Outgolfer68333
3Nibblesdarrenks77142
4GolfScriptkt3k114545
5FlogScriptmilieu114545
6z80kodera124166
7BurlesqueHendrik124166
8Universal Lambdahinoe143571
9JI., S.(pooq)153333
10DOS*yuko*163125
11Kteebee163125
12gorubyleonid222272
13dcint-e (tails)232173
14Perlleonid252000
15PostscriptySas271851
16Rubyleonid291724
17Groovyuru311612
18Vim(pla)311612
19Octaveinaniwa331515
20Maximapooq341470
21Schemekaki341470
22Common LISPleonid351428
23PHPo-cn351428
24Logoteebee351428
25AWKnn381315
26LilyPondKirarinSnow381315
27Fortran*yuko*381315
28PARI/GPalephalpha381315
29Rpooq391282
30Iopooq401250
31Scalapooq401250
32Bashyamaya401250
33BASIC*yuko*411219
34Haskellnotogawa421190
35REXX*yuko*431162
36Arcpooq451111
37JavaScriptFizzyTea451111
38sedleonid461086
39Pythonxnor461086
40Prologpooq(2)471063
41C51b471063
42Xtalpooq51980
43Brainfuckmitchs (ksk)52961
44Forthimpomatic53943
45Python3albanian_laundromat59847
46Asymptoteteebee(pooq)61819
47Luayamaya62806
48m451b63793
49D51b64781
50Pikepooq66757
51Javateebee67746
52Whitespacekaz_u(%20)67746
53OCamlksk68735
54REBOLteebee(pooq)78641
55Pascal*yuko*86581
56Erlang51b88568
57Gouru88568
58D-compile-time51b109458
59Lazy-K51b139359
60COBOL*yuko*192260
61Unlambdairori222225
62Grassirori234213

return to the top page