Bigger power of two

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

Output the smallest power of two that is bigger than input number.

Options

exec is denied

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

Sample input:_

3
1
4
1
5
9
2
6
5
3

Sample output:

4
2
8
2
8
16
4
8
8
4

Sample input:_

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100

Sample output:

2
4
4
8
8
8
8
16
16
16
16
16
16
16
16
32
32
32
32
32
32
32
32
32
32
32
32
32
32
32
32
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128

Sample input:_

1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368
75025
121393
196418
317811
514229
832040
1346269
2178309
3524578
5702887
9227465
14930352
24157817
39088169
63245986

Sample output:

2
2
4
4
8
16
16
32
64
64
128
256
256
512
1024
1024
2048
4096
8192
8192
16384
32768
32768
65536
131072
131072
262144
524288
524288
1048576
2097152
4194304
4194304
8388608
16777216
16777216
33554432
67108864
67108864

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid280.07002010/11/02 15:15:450B / ?B / ?B
2ksk280.07192010/11/03 18:28:470B / 8B / 17B
3hide24280.09502010/11/04 13:46:260B / 8B / 19B
4yvl280.06782010/11/04 16:31:250B / 8B / 17B
5uru280.07212010/11/04 19:48:440B / 8B / 17B
6eban290.06472010/11/02 12:45:160B / 12B / 14B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89260.03332010/11/02 00:09:210B / ?B / ?B
2teebee260.03452010/11/06 22:21:450B / ?B / ?B
3ais523340.05172010/11/07 17:41:371B / ?B / ?B
4plik460.03792010/11/13 05:43:560B / 22B / 23B
5_470.17752010/11/13 05:43:050B / ?B / ?B
6teebee250.12892011/03/24 07:35:160B / 13B / 10B
7jonathan camacho520.03402014/09/02 03:24:520B / 23B / 27B

Python _

RankUserSizeTimeDateStatistics
1recursive420.13312010/11/02 05:55:560B / 26B / 15B
2hallvabo420.12502010/11/04 06:08:370B / 26B / 15B
3leonid420.12892010/11/04 07:06:490B / 26B / 15B
4KirarinSnow430.16682010/11/05 00:53:450B / 27B / 14B
5kt3k430.13482010/11/07 03:58:010B / 26B / 16B
6Exelian490.10662010/11/03 05:38:110B / 29B / 11B
7hallvabo (alt)510.12262010/11/13 04:09:080B / 37B / 10B
8hallvabo (recursion)580.10162010/11/13 04:09:310B / 38B / 13B
9xsot390.08232013/05/04 19:38:210B / 25B / 12B
10primo (recursion)500.04952010/11/17 00:45:070B / 33B / 12B
11zombie510.03052010/11/16 08:28:270B / 33B / 12B

PHP _

RankUserSizeTimeDateStatistics
1o-cn520.12722010/11/07 05:09:501B / ?B / ?B
2kt3k580.11312010/11/07 03:23:020B / 27B / 31B
3o-cn430.03102010/11/16 08:43:391B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1KirarinSnow430.31542010/11/05 01:35:090B / 31B / 11B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima500.58472010/11/04 08:43:140B / 33B / 14B
2KirarinSnow500.21982010/11/05 01:42:080B / 33B / 14B

Arc _

RankUserSizeTimeDateStatistics
1youz465.98242010/11/08 12:29:170B / 30B / 15B

Clojure _

RankUserSizeTimeDateStatistics
1uochan565.44852010/11/27 00:03:460B / ?B / ?B

LilyPond _

RankUserSizeTimeDateStatistics
1KirarinSnow534.05842010/11/05 01:29:310B / 38B / 14B

Io _

RankUserSizeTimeDateStatistics
1pooq730.50892010/11/12 15:55:540B / 57B / 10B
2pooq640.21942013/05/04 20:16:260B / 48B / 13B

JavaScript _

RankUserSizeTimeDateStatistics
1nn450.04312010/11/02 10:27:080B / 29B / 16B
20mg450.04772010/11/06 19:41:590B / 21B / 24B
3js450.05262010/11/09 18:34:330B / 27B / 18B
4teebee460.04342010/11/07 01:03:480B / ?B / ?B
5walkerneo470.08112012/02/12 17:57:360B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1yamaya480.05962010/11/02 22:51:550B / 33B / 14B

Xtal _

RankUserSizeTimeDateStatistics
1pooq590.09722011/01/02 13:33:150B / 33B / 25B

Icon _

RankUserSizeTimeDateStatistics
1teebee(pooq)600.03792012/04/06 18:23:100B / 40B / 17B
2pooq620.04642012/04/03 07:16:350B / 43B / 16B

Prolog _

RankUserSizeTimeDateStatistics
1teebee410.16832012/03/05 05:49:050B / 21B / 19B
2pooq770.18522011/01/02 18:22:000B / 39B / 35B

BASIC _

RankUserSizeTimeDateStatistics
1pooq530.04592011/01/02 14:20:350B / 33B / 15B

J _

RankUserSizeTimeDateStatistics
1I., S.280.12472010/11/03 12:02:480B / 14B / 13B
2pooq280.14182010/11/12 07:42:110B / 10B / 17B
3pooq270.13192011/01/24 23:59:000B / 11B / 16B

K _

RankUserSizeTimeDateStatistics
1teebee180.02802012/07/02 09:03:500B / 7B / 11B

C _

RankUserSizeTimeDateStatistics
1hinoe570.03702010/11/05 01:05:300B / 32B / 25B
2nn570.03542010/11/06 01:31:040B / 29B / 28B
3inaniwa580.03862010/11/02 11:34:200B / 32B / 26B
4not580.01422010/11/03 12:47:590B / 32B / 26B
5nai580.03692010/11/05 10:30:410B / 32B / 26B
6tanakh600.03632010/11/03 02:30:070B / 31B / 29B
7hallvabo620.06772010/11/02 10:10:180B / 32B / 30B
8hos620.14422010/11/02 10:52:130B / ?B / ?B
9kou630.03112010/11/11 11:47:390B / 31B / 32B
10Debanjan660.03772010/11/03 15:52:170B / ?B / ?B
11chocobi680.03632010/11/03 12:01:300B / 34B / 34B
12fill680.03092010/11/04 13:38:390B / ?B / ?B
13zzo38800.04252010/11/06 10:38:560B / 28B / 52B
14csanders750.00392010/11/16 10:26:331B / ?B / ?B

OCaml _

RankUserSizeTimeDateStatistics
1ksk660.30052010/11/13 16:16:060B / 45B / 18B
2m.ukai670.14892010/11/08 14:16:070B / 40B / 22B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa380.03332010/11/02 22:11:550B / ?B / ?B
2tanakh380.04332010/11/03 02:41:590B / 26B / 12B
3henkma380.03342010/11/03 17:21:570B / 26B / 12B
4koyama41380.04682010/11/10 17:27:130B / 26B / 12B
5Lost_dog420.04392010/11/06 16:01:390B / 28B / 13B
6konn500.00542010/11/19 11:34:140B / 35B / 14B

ObjC _

RankUserSizeTimeDateStatistics
1zzo38800.03642010/11/06 10:50:470B / 28B / 52B

Java _

RankUserSizeTimeDateStatistics
1teebee1270.53392010/11/07 11:32:290B / ?B / ?B
2hallvabo1270.47902010/11/09 06:38:130B / 90B / 32B

Pascal _

RankUserSizeTimeDateStatistics
1uru770.02592010/11/04 20:17:370B / 57B / 15B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*520.03732010/11/04 12:13:420B / 32B / 19B
2*yuko*460.03882012/11/11 17:59:220B / 28B / 17B

Maxima _

RankUserSizeTimeDateStatistics
1pooq610.42482011/03/11 01:40:480B / 36B / 24B

Octave _

RankUserSizeTimeDateStatistics
1pooq420.63252011/10/23 05:05:560B / 23B / 19B

Asymptote _

RankUserSizeTimeDateStatistics
1chocobi512.79162010/11/03 12:22:240B / 30B / 19B
2teebee450.40022011/12/17 06:01:000B / 29B / 15B

AWK _

RankUserSizeTimeDateStatistics
1yamaya240.05292010/11/02 00:37:510B / 10B / 14B
2eban240.04512010/11/02 12:22:560B / 10B / 14B
3teebee250.03852010/11/06 23:09:030B / ?B / ?B
4Priyank290.02702010/11/03 19:57:180B / ?B / ?B

jq _

RankUserSizeTimeDateStatistics
1eban340.04462014/12/12 15:27:190B / 20B / 13B

Bash _

RankUserSizeTimeDateStatistics
1teebee260.06312010/11/06 22:19:430B / ?B / ?B
2eban280.05142010/11/15 18:48:400B / 20B / 6B
3Priyank350.04922010/11/03 19:43:550B / ?B / ?B
4tails220.03212019/07/05 09:33:000B / 16B / 5B
5teebee250.02992011/03/24 07:46:040B / 14B / 10B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails380.16462019/07/05 09:23:530B / 15B / 20B
2McBusLuck470.17842019/07/06 15:13:210B / 19B / 21B
3McBusLuck (tails)810.16112019/07/06 15:23:270B / 15B / 62B

Zsh _

RankUserSizeTimeDateStatistics
1teebee260.07462010/11/06 22:20:230B / ?B / ?B
2McBusLuck (tails)230.02062019/07/06 15:10:570B / 16B / 6B
3teebee250.30152011/03/24 07:46:430B / 14B / 10B

Fish _

RankUserSizeTimeDateStatistics
1teebee260.14652010/11/06 22:20:280B / ?B / ?B
2teebee250.30442011/03/24 07:46:500B / 14B / 10B

dc _

RankUserSizeTimeDateStatistics
1tails260.03542012/03/24 11:23:470B / 17B / 9B

xgawk _

RankUserSizeTimeDateStatistics
1teebee250.07792010/11/06 23:10:070B / ?B / ?B
2Priyank290.08062010/11/03 19:58:420B / ?B / ?B
3teebee240.10402011/03/24 07:47:400B / 13B / 11B

m4 _

RankUserSizeTimeDateStatistics
1tails770.03232019/07/05 18:43:280B / 32B / 45B

Postscript _

RankUserSizeTimeDateStatistics
1KirarinSnow(bin)310.45882010/11/05 01:19:017B / 16B / 8B
2KirarinSnow490.47452010/11/05 01:18:300B / 35B / 8B

R _

RankUserSizeTimeDateStatistics
1pooq410.47382012/10/25 14:47:530B / 27B / 14B

GolfScript _

RankUserSizeTimeDateStatistics
1nn150.20212010/11/02 10:48:570B / 7B / 8B
2narb150.20382010/11/03 15:27:500B / ?B / ?B
3leonid150.20412010/11/04 07:42:290B / 7B / 8B
4yvl150.20382010/11/04 16:38:480B / 7B / 8B
5KirarinSnow150.22202010/11/05 00:52:340B / 3B / 12B
6nooodl150.20532010/11/11 22:55:150B / ?B / ?B

gs2 _

RankUserSizeTimeDateStatistics
1tails50.28622019/07/03 16:30:170B / 3B / 2B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu100.23442010/11/02 01:56:360B / ?B / ?B
2zzo38100.33002010/11/06 10:25:180B / 4B / 6B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik130.04022019/07/03 18:45:060B / 8B / 5B
2teebee180.04442014/09/23 06:46:360B / 10B / 8B
3mroman (shorter)320.07412013/01/26 21:30:530B / 12B / 20B
4mroman480.05732013/01/20 22:43:570B / 16B / 32B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*550.68422010/11/11 10:38:4429B / 15B / 9B

Vim _

RankUserSizeTimeDateStatistics
1pla400.74562010/11/03 20:48:304B / 21B / 15B
2nn500.39072010/11/07 21:48:446B / 26B / 16B

goruby _

RankUserSizeTimeDateStatistics
1eban260.10482010/11/15 13:53:040B / 12B / 12B
2murky-satyr230.10112010/11/16 01:40:130B / 9B / 11B

Groovy _

RankUserSizeTimeDateStatistics
1nn596.21142010/11/02 10:39:340B / 47B / 11B
2teebee593.56462010/11/15 13:09:080B / 47B / 11B
3teebee(murky-satyr)572.87632014/09/11 06:50:460B / 46B / 8B
4murky-satyr583.54332010/11/16 01:27:580B / 47B / 8B

Scala _

RankUserSizeTimeDateStatistics
1pooq478.57132011/02/24 12:47:080B / 37B / 10B

Logo _

RankUserSizeTimeDateStatistics
1teebee510.00922011/03/24 07:33:520B / 38B / 5B

Language Ranking_

RankLangUserSizeScore
1gs2tails510000
2FlogScriptmilieu105000
3BurlesqueHendrik133846
4GolfScriptnn153333
5Kteebee182777
6Bashtails222272
7gorubymurky-satyr232173
8ZshMcBusLuck (tails)232173
9AWKyamaya242083
10xgawkteebee242083
11Perlteebee252000
12Fishteebee252000
13dctails261923
14Jpooq271851
15Rubyleonid281785
16PostscriptKirarinSnow(bin)311612
17jqeban341470
18Haskellnotogawa381315
19Bash (builtins)tails381315
20Pythonxsot391282
21Vimpla401250
22Prologteebee411219
23Rpooq411219
24Octavepooq421190
25SchemeKirarinSnow431162
26PHPo-cn431162
27JavaScriptnn451111
28Asymptoteteebee451111
29Arcyouz461086
30Fortran*yuko*461086
31Scalapooq471063
32Luayamaya481041
33Common LISPkozima501000
34Logoteebee51980
35LilyPondKirarinSnow53943
36BASICpooq53943
37z80*yuko*55909
38Clojureuochan56892
39Chinoe57877
40Groovyteebee(murky-satyr)57877
41Xtalpooq59847
42Iconteebee(pooq)60833
43Maximapooq61819
44Iopooq64781
45OCamlksk66757
46Pascaluru77649
47m4tails77649
48ObjCzzo3880625
49Javateebee127393

return to the top page