Least Common Multiple

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

Find the least common multiple of two integers.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

195 548
965 981
104 130
797 979
835 426
881 711
175 411
459 870
333 140
820 694
488 774
919 219
263 984
337 185
230 354
222 821
882 169
621 664
594 107
230 712

Sample output:

106860
946665
520
780263
355710
626391
71925
133110
46620
284540
188856
201261
258792
62345
40710
182262
149058
412344
63558
81880

Sample input:_

195 548
965 981
104 130
7777 53
5698 43
3258 19
4719 13
3716 38
4783 76
2259 4
1209 25
9726 0
1755 50
2259 82
3855 98
2546 82
8224 30
8603 4
4517 24
4503 54
3139 88
8200 34
3423 3
1100 16
0 29876
9826 64

Sample output:

106860
946665
520
412181
245014
61902
4719
70604
363508
9036
30225
0
17550
185238
377790
104386
123360
34412
108408
81054
276232
139400
3423
4400
0
314432

Sample input:_

679908 589444
440761 226134
830450 279892
579561 954065
415666 991133
945134 316076
888379 114869
595159 449767
660249 801747
628360 528990
286975 586143
371132 116606
523847 910196
307447 275052
859907 897429
275294 497116
303337 233051
253643 315560
304905 819715
492144 525730

Sample output:

100191922788
99671047974
116218155700
552938865465
411980289578
149367087092
102047207351
267682877953
58816961667
33239615640
168208387425
21638108996
476803444012
84563912244
771705479103
68426526052
70692991187
80039585080
49987040415
129367432560

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid311.35762010/11/18 19:01:200B / ?B / ?B
2kaki311.45472011/10/29 01:25:210B / 19B / 8B
3clock311.12352012/07/08 15:08:280B / 19B / 8B
4mitchs310.87102015/12/13 04:22:540B / 19B / 8B
5eban320.60122007/03/04 03:32:030B / 20B / 8B
6flagitious(mathn)320.64262007/03/04 15:17:140B / ?B / ?B
7_N320.72232007/03/05 22:11:150B / 20B / 8B
8Histocrat320.10152014/05/17 05:45:030B / 20B / 8B
9llhuii320.08342018/05/01 22:36:540B / 20B / 8B
10flagitious330.56922007/03/04 14:49:000B / ?B / ?B
11shinh330.56972007/03/04 23:29:550B / 21B / 8B
12usa380.59662007/03/06 14:43:050B / 21B / 11B
13@tttttanaka440.14382012/04/11 18:47:100B / 25B / 16B
14konn550.60992007/03/04 23:36:590B / ?B / ?B
15___880.26352007/03/03 18:20:400B / ?B / ?B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs270.19632015/10/27 18:42:140B / 15B / 8B
2tree270.20842016/10/06 22:43:350B / ?B / ?B
3ludo270.19022016/12/26 01:23:180B / 15B / 8B
4rotary-o270.18552018/05/01 15:01:350B / 15B / 8B
5llhuii270.15612018/05/01 16:02:060B / 15B / 8B

Perl _

RankUserSizeTimeDateStatistics
1tails410.47472011/05/14 03:33:510B / 20B / 17B
2teebee410.34282011/05/20 15:41:480B / 20B / 17B
3llhuii410.10582018/04/15 13:21:230B / 20B / 17B
4ott431.15062008/01/01 23:13:370B / 29B / 10B
5ySas461.82132007/03/04 07:32:040B / 31B / 12B
6TAKO/j0nKI780.25792010/03/15 01:19:560B / ?B / ?B
7dankogai812.02152007/03/05 02:34:580B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1mskzzzz780.39502007/03/05 00:58:180B / 48B / 21B
2SeeNoEvil781.65382007/03/05 17:14:490B / 48B / 21B
3lifthrasiir780.35372007/05/06 01:25:150B / 48B / 21B
4kt3k781.04992007/07/08 18:09:430B / 48B / 21B
5hirose780.10252007/10/01 12:51:350B / 48B / 21B
6hallvabo780.22572008/12/08 08:26:530B / 48B / 21B
7twobit780.09782011/04/01 03:39:130B / 48B / 21B
8leonid780.07012011/08/17 18:36:340B / 48B / 21B
9clock780.15572012/10/27 18:55:420B / 48B / 21B
10xsot780.11742013/04/20 12:51:560B / 50B / 26B
11mitchs780.12102014/02/25 01:03:360B / 48B / 21B
12llhuii780.09482014/11/22 23:24:030B / 48B / 21B
13Stephan W.780.09552015/07/15 16:24:590B / 48B / 21B
14peace830.13962017/02/20 01:39:260B / ?B / ?B
15rolf900.05632013/02/15 05:57:030B / 58B / 25B
16recursive940.14272008/09/18 23:24:550B / 57B / 27B

Python3 _

RankUserSizeTimeDateStatistics
1Stephan W.760.13962015/07/15 16:24:130B / 45B / 23B
2mitchs760.17872015/11/26 21:25:100B / 45B / 23B
3llhuii760.11312018/04/15 11:03:590B / 45B / 23B
4mypetlion760.12422018/10/10 04:48:250B / 45B / 23B
5z423x5c6990.17772014/08/13 21:56:100B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1teebee770.14842012/01/09 05:12:275B / 34B / 38B
2clock770.07862012/10/27 19:15:035B / 34B / 38B
3primo770.07412015/11/26 21:18:105B / 33B / 39B
4o-cn840.03592010/01/15 04:59:185B / 38B / 41B
5mskzzzz880.51132007/06/12 19:07:020B / 38B / 48B
6beton1230.49752007/05/05 05:12:320B / 55B / 66B

Pike _

RankUserSizeTimeDateStatistics
1teebee890.25632014/02/27 06:37:340B / 52B / 35B
2mitchs890.32132014/03/04 11:51:290B / 52B / 35B
3Hendrik890.27782014/03/28 14:14:190B / 52B / 35B
4clock890.24992015/03/10 09:58:220B / 52B / 35B

Scheme _

RankUserSizeTimeDateStatistics
1ma310.86672007/03/03 18:47:590B / ?B / ?B
2mskzzzz310.37172007/04/18 04:21:080B / 21B / 10B
3murky-satyr310.19702008/04/25 03:22:260B / 21B / 10B
4kaki310.22492008/05/22 23:00:310B / 21B / 10B
5pla310.30652010/01/20 23:54:340B / 21B / 10B
6cddddr310.19302011/04/09 18:09:020B / 21B / 10B
7clock310.12422012/10/20 18:37:160B / 21B / 10B
8teebee310.11482012/10/20 21:30:520B / 21B / 10B
9kyle640.70692007/04/02 14:33:100B / 40B / 24B

Common LISP _

RankUserSizeTimeDateStatistics
1___381.48982007/03/03 18:46:530B / ?B / ?B
2kozima380.62162007/03/05 13:50:230B / 23B / 13B
3shimizu381.62542007/03/05 20:00:230B / ?B / ?B
4Defenestrator380.61592007/04/14 14:40:280B / ?B / ?B
5kaki380.16382011/10/29 01:27:210B / 26B / 12B
6ttmh380.08022014/08/07 19:47:100B / 23B / 13B
7hebiyan900.07422015/10/01 14:13:220B / 46B / 18B

Arc _

RankUserSizeTimeDateStatistics
1pooq7910.52422009/10/12 12:50:020B / 40B / 26B

Clojure _

RankUserSizeTimeDateStatistics
1uochan575.50902011/01/09 04:43:330B / ?B / ?B
2murky-satyr635.36672010/05/29 17:50:400B / 34B / 28B

Io _

RankUserSizeTimeDateStatistics
1clock1100.23602015/02/22 00:52:220B / 84B / 22B
2teebee1100.20712015/02/22 07:41:220B / 84B / 22B
3pooq1230.25612012/11/04 09:11:200B / 89B / 30B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee670.07532012/10/27 19:28:000B / 36B / 30B
2clock670.04802012/10/28 01:47:280B / 36B / 30B
3nn700.00402010/03/18 10:37:240B / 37B / 32B
4Dashiva830.14672007/04/22 00:44:150B / 43B / 39B
5nanto_vi840.12992007/03/08 00:10:550B / 46B / 37B

Lua _

RankUserSizeTimeDateStatistics
1twobit780.00422011/04/01 03:44:590B / 49B / 21B
2pooq780.00402011/08/16 16:07:460B / 47B / 27B
3clock780.04232012/10/27 18:59:500B / 49B / 21B
4teebee780.03372012/10/27 21:58:260B / 49B / 21B
5planque810.08942007/05/19 02:02:030B / 51B / 22B

Tcl _

RankUserSizeTimeDateStatistics
1clock1120.05712012/10/27 19:01:490B / 63B / 30B
2pooq1350.02302009/11/21 08:05:360B / 75B / 37B

REXX _

RankUserSizeTimeDateStatistics
1*yuko*750.04032014/02/26 23:04:550B / 51B / 17B
2clock820.03932012/11/14 13:40:440B / 55B / 9B
3teebee820.05532012/11/16 08:29:380B / 55B / 9B

Smalltalk _

RankUserSizeTimeDateStatistics
1clock670.07962013/01/07 06:37:320B / 49B / 14B
2murky-satyr740.58532008/04/10 22:17:580B / 53B / 17B
3sumim1010.78832007/03/04 10:08:470B / 60B / 37B

Prolog _

RankUserSizeTimeDateStatistics
1mskzzzz990.36352007/05/10 19:20:010B / 49B / 46B

Forth _

RankUserSizeTimeDateStatistics
151b1170.07032008/05/21 21:48:220B / 83B / 8B

BASIC _

RankUserSizeTimeDateStatistics
1clock870.04642013/03/28 02:54:380B / 53B / 29B
2pooq1030.06012008/11/15 13:29:330B / 62B / 34B

Erlang _

RankUserSizeTimeDateStatistics
1teebee1440.32102016/07/24 18:03:400B / 71B / 64B
251b1470.95852007/10/11 02:59:250B / 71B / 68B
3mskzzzz2402.24972007/06/01 17:14:080B / 122B / 108B

J _

RankUserSizeTimeDateStatistics
1pooq230.75192008/11/15 06:38:020B / 7B / 16B
2Hendrik230.14232012/03/19 07:10:110B / 7B / 16B
3clock230.09772013/04/07 22:02:070B / 9B / 14B
4kinaba240.20402007/11/11 21:12:120B / 8B / 16B
5medialuna390.06892014/08/26 20:28:290B / ?B / ?B

C _

RankUserSizeTimeDateStatistics
17gyou840.48792007/03/05 06:26:220B / 40B / 44B
2tails840.08872018/10/10 17:41:210B / 40B / 44B
3moriA850.08862007/03/06 04:05:530B / 41B / 44B
4hinoe850.38512008/03/09 21:44:100B / 40B / 45B
5inaniwa850.30042010/09/15 17:13:060B / 40B / 45B
6llhuii850.12802015/07/04 10:26:570B / ?B / ?B
7david_werecat900.11082012/07/13 01:56:100B / 47B / 41B
851b910.06662008/03/10 04:53:110B / 44B / 47B
9csanders960.38512010/12/01 09:20:340B / 52B / 42B
10notogawa990.06192007/03/05 05:42:060B / ?B / ?B
11ma1130.08512007/03/04 01:33:510B / ?B / ?B

C++ _

RankUserSizeTimeDateStatistics
1deadlysins1460.00302011/02/16 03:27:181B / ?B / ?B
2TBM_lover1580.00432011/02/15 19:31:252B / ?B / ?B

D _

RankUserSizeTimeDateStatistics
151b1130.04742008/01/26 21:47:230B / 69B / 41B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1171.36442007/05/30 22:46:590B / 69B / 37B
2m.ukai1190.88722007/03/05 16:42:150B / 71B / 36B
3suiginto1360.33462007/03/04 23:13:320B / 80B / 38B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa480.30412007/03/05 18:40:370B / ?B / ?B
2moriA480.13842007/03/31 08:20:350B / 36B / 12B
3rst76480.01472009/12/30 19:47:570B / 36B / 12B
4henkma480.00752011/09/11 10:13:020B / 36B / 12B
5koyama41480.06272011/10/18 23:36:370B / 36B / 12B
6cojna480.04182013/01/11 00:41:590B / 36B / 12B
7teebee480.04582013/05/04 09:01:140B / 36B / 12B
8int-e480.03562015/01/10 22:23:140B / 36B / 12B
9na_o_ys480.03612015/07/04 17:56:180B / ?B / ?B
10necojackarc480.03832015/07/04 18:07:230B / ?B / ?B
11Hendrik480.04252016/12/02 04:28:100B / 36B / 12B
12emoken490.13502007/03/04 02:00:280B / ?B / ?B
13b2ox510.10832007/03/04 05:02:200B / 39B / 10B
14_510.11572007/11/10 12:55:220B / 39B / 10B
15twobit510.03542013/05/17 21:53:050B / 39B / 10B
16tanakh540.12802007/03/03 17:29:530B / ?B / ?B
17590.03792009/08/24 21:26:170B / 47B / 12B
18FalconNL630.04252008/10/17 09:02:030B / 52B / 9B
19shufu680.03972015/07/07 15:54:030B / ?B / ?B
207gyou700.08252007/03/21 21:59:160B / 42B / 22B
21hebiyan1160.04432015/10/01 14:11:200B / 50B / 17B
22nt1450.04482015/07/07 14:31:210B / ?B / ?B

ObjC _

RankUserSizeTimeDateStatistics
1llhuii850.12382015/07/04 11:55:230B / ?B / ?B

Java _

RankUserSizeTimeDateStatistics
1teebee1590.37912011/12/22 17:37:550B / 102B / 51B
2clock1590.32862012/10/27 19:06:380B / 101B / 52B
3hallvabo1680.54182010/09/19 21:33:280B / 110B / 53B
4Roy van Rijn2410.55422009/01/29 23:26:360B / 153B / 82B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1040.06292014/02/26 23:05:140B / 72B / 20B
2uru1190.08522009/04/26 02:36:040B / 79B / 31B
3pooq1350.06162009/01/26 08:34:070B / 89B / 33B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*770.12772014/02/26 23:05:060B / 44B / 30B

C# _

RankUserSizeTimeDateStatistics
1teebee1740.17452012/10/28 11:34:130B / 112B / 56B
2clock1740.17452012/10/28 14:37:050B / 112B / 56B

Maxima _

RankUserSizeTimeDateStatistics
1teebee600.26642012/10/28 12:13:150B / 32B / 27B
2clock600.23642012/10/28 13:29:300B / 32B / 27B
3pooq670.51042011/03/11 12:03:200B / 39B / 27B

Octave _

RankUserSizeTimeDateStatistics
1Hendrik470.43442018/07/28 10:04:340B / 30B / 17B
2inaniwa480.63412011/10/22 14:15:110B / 29B / 19B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee660.30872011/12/22 22:20:340B / 39B / 26B
2pooq670.51862011/12/22 21:14:110B / 38B / 28B

AWK _

RankUserSizeTimeDateStatistics
1teebee420.97362014/11/30 06:29:140B / 18B / 24B
2llhuii430.03232018/10/11 23:11:010B / 18B / 25B
3mitchs460.03192014/03/10 11:50:270B / 20B / 26B
4clock490.04272012/11/15 19:02:310B / 21B / 28B
5nn490.03232012/11/16 02:41:110B / 19B / 30B
6yamaya550.09562007/03/04 12:50:000B / 27B / 28B
7usa700.07162007/03/04 17:10:260B / 29B / 40B

jq _

RankUserSizeTimeDateStatistics
1clock740.04062015/02/11 17:02:320B / 40B / 31B

Bash _

RankUserSizeTimeDateStatistics
1tails (gs2)160.22292017/01/21 01:57:222B / 6B / 6B
2llhuii160.17112018/04/15 12:53:062B / 6B / 6B
3Hendrik160.16352018/04/19 01:25:272B / 6B / 6B
4ma830.40022007/03/05 02:07:130B / ?B / ?B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails510.03082018/05/02 15:02:510B / 21B / 24B
2llhuii510.13212018/05/02 21:12:220B / 23B / 24B

Zsh _

RankUserSizeTimeDateStatistics
1llhuii160.19692018/04/15 13:38:242B / 6B / 6B
2Hendrik160.19272018/04/19 01:24:472B / 6B / 6B

Fish _

RankUserSizeTimeDateStatistics
1llhuii170.19842018/04/15 13:40:402B / 7B / 6B

dc _

RankUserSizeTimeDateStatistics
1tails410.02602011/05/21 01:01:230B / 29B / 12B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii340.03382018/10/11 23:12:070B / 14B / 20B
2teebee370.03232014/02/25 06:00:410B / 16B / 21B
3mitchs370.03632014/03/10 11:36:160B / 16B / 21B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)1160.50712007/12/31 00:28:2650B / 44B / 21B
2ySas1280.88182007/05/16 13:12:1158B / 50B / 20B
3yshl2200.52982007/12/31 00:28:020B / 163B / 17B

R _

RankUserSizeTimeDateStatistics
1pooq1040.44142012/10/27 19:42:270B / 57B / 44B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)3790.05402016/07/13 13:40:5569B / 135B / 157B

Whitespace _

RankUserSizeTimeDateStatistics
1kaz_u1640.05242015/05/29 00:50:540B / 0B / 0B
2mitchs1680.04272015/02/03 15:39:240B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1flagitious220.64452007/12/16 02:29:300B / 2B / 20B
2irori240.47742007/12/31 04:15:280B / 5B / 19B
3nn240.18912010/10/05 00:19:500B / 2B / 22B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs40.23882015/04/23 04:27:031B / 2B / 1B
2clock40.24442015/04/23 22:42:291B / 2B / 1B
3tails40.24062017/01/21 01:55:491B / 2B / 1B
4Hendrik40.25552017/01/21 04:53:301B / 2B / 1B
5llhuii40.23252018/04/15 12:51:041B / 2B / 1B

Burlesque _

RankUserSizeTimeDateStatistics
1mroman80.04052013/04/21 23:04:550B / 5B / 3B
2clock80.04102013/04/21 23:24:140B / 5B / 3B
3teebee80.03952013/04/22 00:02:150B / 5B / 3B
4Hendrik80.04822013/04/28 04:08:560B / 5B / 3B
5nooodl80.04652013/08/29 00:36:220B / ?B / ?B
6mitchs80.04232015/04/09 10:14:210B / 5B / 3B

z80 _

RankUserSizeTimeDateStatistics
1fsystem1830.18122008/01/16 01:00:03135B / 16B / 23B
2fsystem(e)3120.09322008/01/12 22:59:49150B / 108B / 49B

Vim _

RankUserSizeTimeDateStatistics
1clock680.61692012/01/08 13:10:282B / 34B / 27B
2nn1040.20592010/10/10 11:51:162B / 54B / 43B

goruby _

RankUserSizeTimeDateStatistics
1leonid180.09392010/01/03 20:58:140B / ?B / ?B
2murky-satyr180.09872010/01/04 01:06:520B / 7B / 8B
3mitchs180.08712015/10/14 23:14:530B / 8B / 7B
4ludo180.10242016/12/26 01:43:110B / 8B / 7B

Groovy _

RankUserSizeTimeDateStatistics
1teebee733.75392012/10/27 19:38:130B / 47B / 25B
2murky-satyr796.33382010/09/19 18:45:580B / 53B / 24B
3nn8010.35962008/12/24 22:11:170B / 49B / 31B

Scala _

RankUserSizeTimeDateStatistics
1Hendrik7810.05472013/08/18 20:31:310B / 51B / 23B
2rotary-o787.00302018/05/01 15:54:100B / 53B / 21B
3tarhashi14410.96582012/06/25 17:44:530B / ?B / ?B

Logo _

RankUserSizeTimeDateStatistics
1teebee680.08082014/02/25 07:35:450B / 39B / 26B
2clock680.05602015/02/04 00:48:050B / 39B / 26B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs410000
2Burlesquemroman85000
3Bashtails (gs2)162500
4Zshllhuii162500
5Fishllhuii172352
6gorubyleonid182222
7GolfScriptflagitious221818
8Jpooq231739
9Ruby2mitchs271481
10Schemema311290
11Rubyleonid311290
12xgawkllhuii341176
13Common LISP___381052
14Perltails41975
15dctails41975
16AWKteebee42952
17OctaveHendrik47851
18Haskellnotogawa48833
19Bash (builtins)tails51784
20Clojureuochan57701
21Maximateebee60666
22Asymptoteteebee66606
23JavaScriptteebee67597
24Smalltalkclock67597
25Vimclock68588
26Logoteebee68588
27Groovyteebee73547
28jqclock74540
29REXX*yuko*75533
30Python3Stephan W.76526
31PHPteebee77519
32Fortran*yuko*77519
33Pythonmskzzzz78512
34Luatwobit78512
35ScalaHendrik78512
36Arcpooq79506
37C7gyou84476
38ObjCllhuii85470
39BASICclock87459
40Piketeebee89449
41Prologmskzzzz99404
42Rpooq104384
43Pascal*yuko*104384
44Ioclock110363
45Tclclock112357
46D51b113353
47Postscriptyshl(bin)116344
48OCamlksk117341
49Forth51b117341
50Erlangteebee144277
51C++deadlysins146273
52Javateebee159251
53Whitespacekaz_u164243
54C#teebee174229
55z80fsystem183218
56Brainfuckmitchs (cheat)379105

Referer

Note that, they may contain spoilers.

return to the top page