Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. n = 2
  2.  
  3. #function
  4. def factor(x):
  5. factors = []
  6. i = 2
  7. while x > 1:
  8. if x % i == 0:
  9. x = x / i
  10. factors.append(i)
  11. else:
  12. i += 1
  13. factors = sorted(set(factors))
  14. return factors
  15.  
  16. #loop
  17.  
  18. while len(factor(n)) <6 or n % 133 != 3:
  19. n +=1
  20. print n
  21.  
  22. print n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement