– Problem 5 – C solution

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?

It ended up very similar to how I did it in Python. Just runs a lot faster in C. 2.6 seconds in C versus over 20 seconds in Python.

– Josh

This entry was posted in C, Project Euler. Bookmark the permalink.

Leave a Reply