LCM of 1 to n

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

For each given integer n, print the lowest common multiple of all integers from 1 to n.

Options

exec is denied

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

Sample input:_

1
2
3
4
5
6
10
25
100
1000

Sample output:

1
2
6
12
60
60
2520
26771144400
69720375229712477164533808935312303556800
7128865274665093053166384155714272920668358861885893040452001991154324087581111499476444151913871586911717817019575256512980264067621009251465871004305131072686268143200196609974862745937188343705015434452523739745298963145674982128236956232823794011068809262317708861979540791247754558049326475737829923352751796735248042463638051137034331214781746850878453485678021888075373249921995672056932029099390891687487672697950931603520000

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1murky-satyr400.17972008/11/07 12:56:100B / 24B / 13B
2leonid400.22962008/11/07 13:44:410B / 24B / 13B
3eban500.46982008/11/08 01:03:390B / 28B / 18B

Python _

RankUserSizeTimeDateStatistics
1Defenestrator630.49962008/11/12 13:39:170B / 40B / 20B
2kt3k760.24882008/11/09 07:57:360B / 46B / 27B
3hirose790.26932008/11/12 16:35:310B / 47B / 29B
4recursive890.05742008/11/09 01:19:340B / 49B / 24B
5leonid620.16282012/02/27 02:25:380B / 39B / 20B

Scheme _

RankUserSizeTimeDateStatistics
1murky-satyr510.05852008/11/07 15:41:250B / 35B / 13B
2cddddr500.06992011/04/16 06:57:500B / 35B / 13B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima680.13972008/11/08 09:24:200B / 40B / 24B
2ttmh640.05692014/08/18 22:24:560B / 38B / 23B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1530.32342008/11/08 00:10:190B / 75B / 78B

PARI/GP _

RankUserSizeTimeDateStatistics
1pooq380.02522012/03/26 05:32:020B / 27B / 11B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr640.69432008/11/07 12:58:200B / 43B / 17B

Erlang _

RankUserSizeTimeDateStatistics
151b1720.42112008/11/09 21:32:350B / 80B / 83B
251b(embed)1473.46492008/12/11 02:25:587B / 66B / 68B
351b1663.36242008/12/11 02:20:130B / 80B / 80B

J _

RankUserSizeTimeDateStatistics
1pooq480.04912008/11/08 01:01:180B / 18B / 29B
2pooq460.05372011/01/30 08:41:470B / 19B / 26B
3medialuna810.02662014/08/19 18:07:570B / ?B / ?B

C _

RankUserSizeTimeDateStatistics
151b1810.05522008/11/08 17:17:570B / 87B / 94B
2mirac3110.29592008/11/08 09:44:090B / 154B / 155B
3mazun3580.00022008/11/08 00:49:29103B / 160B / 89B

D _

RankUserSizeTimeDateStatistics
151b1540.33622009/11/22 22:00:410B / 96B / 54B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1760.23972009/08/14 18:04:520B / 112B / 49B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa440.01972008/11/07 19:54:520B / ?B / ?B
2Defenestrator440.04772008/11/07 20:24:220B / 31B / 11B
3tttaki450.07322008/11/08 10:27:450B / ?B / ?B
4pumpkin620.08432008/12/30 10:00:340B / ?B / ?B

Pascal _

RankUserSizeTimeDateStatistics
1uru5260.00022008/11/27 23:50:380B / ?B / ?B

Maxima _

RankUserSizeTimeDateStatistics
1pooq870.45702011/03/11 12:01:230B / 45B / 41B

AWK _

RankUserSizeTimeDateStatistics
1nn1490.26182008/11/08 19:47:250B / 68B / 79B
2llhuii(nn)1112.23172014/08/19 00:40:260B / ?B / ?B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii(nn)1110.06822014/08/19 00:33:410B / ?B / ?B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)1362.04982008/11/08 19:50:0352B / 47B / 32B
2yshl2452.12992008/11/08 19:49:510B / 178B / 29B

GolfScript _

RankUserSizeTimeDateStatistics
1irori290.34972008/11/07 22:29:490B / 4B / 25B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik140.02412014/05/18 07:32:050B / 8B / 6B

Malbolge _

RankUserSizeTimeDateStatistics
1test130970.02832012/07/02 02:37:500B / ?B / ?B

goruby _

RankUserSizeTimeDateStatistics
1leonid290.36982008/11/07 13:48:090B / 15B / 12B
2murky-satyr290.29962008/11/08 09:53:300B / 15B / 12B
3murky-satyr200.04462010/01/03 20:53:180B / 9B / 10B
4leonid200.04062010/01/03 21:39:420B / 9B / 10B

Groovy _

RankUserSizeTimeDateStatistics
1nn794.82972008/11/08 00:36:030B / 53B / 24B
2murky-satyr795.18212008/11/08 08:26:530B / 53B / 25B

Language Ranking_

RankLangUserSizeScore
1BurlesqueHendrik1410000
2gorubyleonid207000
3GolfScriptirori294827
4PARI/GPpooq383684
5Rubymurky-satyr403500
6Haskellnotogawa443181
7Jpooq463043
8Schemecddddr502800
9Pythonleonid622258
10Smalltalkmurky-satyr642187
11Common LISPttmh642187
12Groovynn791772
13Maximapooq871609
14xgawkllhuii(nn)1111261
15AWKllhuii(nn)1111261
16Postscriptyshl(bin)1361029
17Erlang51b(embed)147952
18JavaScriptnn153915
19D51b154909
20OCamlksk176795
21C51b181773
22Pascaluru526266
23Malbolgetest1309745

return to the top page