loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8345917850695252","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"biA9IGludChpbnB1dCgnVGhlIGxhcmdlc3QgcHJpbWUgZmFjdG9yIG9mICcpKSAKcCA9IDIKd2hpbGUgcCpwIDw9IG46ICAgICAgCiAgaWYgbiAlIHAgPT0gMDogCiAgICBuIC8vPSBwCiAgZWxzZTogCiAgICBwKz0gMiBpZiBwPjIgZWxzZSAxICAgIyBhZnRlciAyLCBjb25zaWRlciBvbmx5IG9kZCBwCnByaW50ICJpcyIsIG4="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
n = int(input('The largest prime factor of ')) 
p = 2
while p*p <= n:      
  if n % p == 0: 
    n //= p
  else: 
    p+= 2 if p>2 else 1   # after 2, consider only odd p
print "is", n