Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 634 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 634 Bytes

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.

What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

Benchmarks

Ruby

$ ruby problem_5/solution.rb
=> Result: 232792560
=> Time: 0.000211s

Python

$ python problem_5/solution.py
=> Result: 232792560
=> Time: 0.000424s

C

$ gcc -o p5 solutions/problem_5/solution.c utils/c/utils.c -I./utils/c
$ ./p5
=> Result: 232792560
=> Time: 0.000001s

Go

$ go run problem_5/solution.go
=> Result: 232792560
=> Time: 0.00000259s