- #1
- 2,168
- 193
Homework Statement
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
Homework Equations
The Attempt at a Solution
Here part of the my code
Python:
#!/usr/bin/python
import math
N=99
for n in range (2,N):
if N%n == 0:
for y in range (2,n+1):
n%y!=0
print(n)
When I do this it prints these values;
3,9,11,33
I can't understand why ? Why 9 and 33 keeps coming ? Note: I am doing it first on small numbers to test the code.