Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def PrintPrimes():
- for candiPrimes in range(2,410):
- divisor = 1
- NumOfReTimes = 0
- while (divisor<=candiPrimes):
- #print str(candiPrimes) + ' / ' + str(divisor)
- if candiPrimes % divisor == 0:
- NumOfReTimes += 1
- divisor += 1
- #print ' ' #New Line
- if NumOfReTimes == 2:
- print ' ' + str(candiPrimes),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement