We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1148029 commit ed11384Copy full SHA for ed11384
Project Euler/Problem 03/sol2.py
@@ -3,7 +3,13 @@
3
The prime factors of 13195 are 5,7,13 and 29. What is the largest prime factor of a given number N?
4
e.g. for 10, largest prime factor = 5. For 17, largest prime factor = 17.
5
'''
6
+
7
from __future__ import print_function
8
+try:
9
+ raw_input # Python 2
10
+except NameError:
11
+ raw_input = input # Python 3
12
13
n=int(raw_input())
14
prime=1
15
i=2
0 commit comments