loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.983566241770593","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"ZnJvbSBFdWxlciBpbXBvcnQgcHJpbWVfc2lldmUKZnJvbSBtYXRoIGltcG9ydCBsb2cKZnJvbSBvcGVyYXRvciBpbXBvcnQgbXVsCgpMID0gaW50KGlucHV0KCdTbWFsbGVzdCBudW1iZXIgdGhhdCBpcyBldmVubHkgZGl2aXNpYmxlIGJ5IGFsbCBvZiB0aGUgbnVtYmVycyBmcm9tIDEgdG8/ICcpKQpwcmltZXMgPSBwcmltZV9zaWV2ZShMKQpwcmludCAiaXMiLCByZWR1Y2UobXVsLCAocCAqKiBpbnQobG9nKEwpL2xvZyhwKSkgZm9yIHAgaW4gcHJpbWVzKSwgMSk="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
from Euler import prime_sieve
from math import log
from operator import mul

L = int(input('Smallest number that is evenly divisible by all of the numbers from 1 to? '))
primes = prime_sieve(L)
print "is", reduce(mul, (p ** int(log(L)/log(p)) for p in primes), 1)