Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- result = 1
- num_to_check = 100
- for num in range(1, (num_to_check + 1)):
- if result % num != 0:
- factor = 1
- while num > factor:
- factor += 1
- while num % factor == 0:
- num = num / factor
- result *= factor
- print result
Add Comment
Please, Sign In to add comment