Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=13
- y=x
- primecounter=0
- while (primecounter<1000):
- if x>(x/2)*2:
- x=x+1
- y=y-1
- primetest=x%y
- countpossible=0
- if primetest==0:
- countpossible=countpossible+1
- y=y-1
- else:
- y=y-1
- if countpossible<3:
- print x
- else:
- x=x+1
Advertisement
Add Comment
Please, Sign In to add comment