Try to solve the next problem; it should take only some minutes. It could help to know what an Integer factorization is and perhaps arrays can be useful here.
>> Problem 5 from Project Euler <<
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?
This is where most of us started. Classic Spectrum basic.
Moderator: Programming Moderators
1 post • Page 1 of 1