+ 4

# [ASSIGNMENT] Find the smallest number that can be exactly divided by all numbers from 1 to 10

Inspired by the tweet that Elon Musk liked today

14 Answers

+ 19

take lcm of numbers from 1 to 10
//smallest no. div. by all numbers from 1 to 10 .
//âșđ

+ 6

Not elegant but it seems work :
https://code.sololearn.com/cujCWYBPZ715/?ref=app

+ 4

10*9*8*7/2

+ 3

10*9*7*4?

+ 2

i'll give u a hint:
it might be somewhere
between 2_519 and 2_521. maybe that might help. ;P

+ 2

nope, I checked it last time... Say hi to Maria from me.

+ 1

+ 1

+ 1

i think it's hiding under my pillow!

+ 1

VcC gcd of these numbers is 1.

+ 1

âąTheChamp921, well, then that's my answer: it means u were joking. :)

0

checker = list()
loop = 1
for number in range(1, 10001):
print(loop)
for modulo in range(1, 11):
if number % modulo == 0:
checker.append(modulo)
print("added one")
if len(checker) == 10:
print("FOUND IT HERE: ", number)
break
else:
checker = list()
loop += 1

0

TheChamp921, so what's it mean when u post an answer, say it's not that hard, maybe u r just that smart, when your answer is utterly wrong? the answer is 2520, which
= 9 * 8 * 7 * 5