mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-26 02:48:40 +00:00
Update sol2.py
This commit is contained in:
parent
11480295d4
commit
ed11384116
@ -3,7 +3,13 @@ Problem:
|
|||||||
The prime factors of 13195 are 5,7,13 and 29. What is the largest prime factor of a given number N?
|
The prime factors of 13195 are 5,7,13 and 29. What is the largest prime factor of a given number N?
|
||||||
e.g. for 10, largest prime factor = 5. For 17, largest prime factor = 17.
|
e.g. for 10, largest prime factor = 5. For 17, largest prime factor = 17.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
try:
|
||||||
|
raw_input # Python 2
|
||||||
|
except NameError:
|
||||||
|
raw_input = input # Python 3
|
||||||
|
|
||||||
n=int(raw_input())
|
n=int(raw_input())
|
||||||
prime=1
|
prime=1
|
||||||
i=2
|
i=2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user