Sorry to hax you but
Rather than doing **.6M iterations why not:
- find prime factors of each number - you nearly did this
- take the smallest necessary collection of those prime numbers (the highest power of each prime)
- multiply them up
And bingo: you have:
2*2*2*2 * *** * 5 * 7 * ** * ** * *7 * ** = 2*2,7*2,560
Finding prime factors is easy, and I think this would be more scalable
7h* L**7*57 c4n7 h4ck m*!
Proud to have quit playing ®µÑȧ©ÅÞË
If you write like a semi-literate boob you will very likely be ignored.
Writing like a l**t script kiddie hax0r is the absolute l**t*st way to write!
L0L