all valid python 3

This commit is contained in:
Alex Brown
2018-10-20 14:45:08 -05:00
parent b566055e4b
commit ea2ddaaf6a
37 changed files with 76 additions and 1436 deletions

View File

@ -19,7 +19,7 @@ def isprime(no):
return True
maxNumber = 0
n=int(raw_input())
n=int(input())
if(isprime(n)):
print(n)
else:

View File

@ -4,7 +4,7 @@ The prime factors of 13195 are 5,7,13 and 29. What is the largest prime factor o
e.g. for 10, largest prime factor = 5. For 17, largest prime factor = 17.
'''
from __future__ import print_function
n=int(raw_input())
n=int(input())
prime=1
i=2
while(i*i<=n):