Skip to content

Commit ed11384

Browse files
authored
Update sol2.py
1 parent 1148029 commit ed11384

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Project Euler/Problem 03/sol2.py

+6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
The prime factors of 13195 are 5,7,13 and 29. What is the largest prime factor of a given number N?
44
e.g. for 10, largest prime factor = 5. For 17, largest prime factor = 17.
55
'''
6+
67
from __future__ import print_function
8+
try:
9+
raw_input # Python 2
10+
except NameError:
11+
raw_input = input # Python 3
12+
713
n=int(raw_input())
814
prime=1
915
i=2

0 commit comments

Comments
 (0)