mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 19:03:02 +08:00
all valid python 3
This commit is contained in:
@ -19,7 +19,7 @@ def isprime(no):
|
||||
return True
|
||||
|
||||
maxNumber = 0
|
||||
n=int(raw_input())
|
||||
n=int(input())
|
||||
if(isprime(n)):
|
||||
print(n)
|
||||
else:
|
||||
|
@ -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):
|
||||
|
Reference in New Issue
Block a user