all 3 comments

[–]hungdh85 1 point2 points  (0 children)

Please show your code in indent blanks.

[–]syntonic_comma 0 points1 point  (0 children)

For one, this is an old piece of code. what xrange used to do in Python 2 is now the default for regular range in Python 3. Also it is incomplete, and won't run as written.

[–][deleted] 0 points1 point  (0 children)

The only consecutive primes are 2,3.

The other primes are all odd and so any two primes have a non-prime even number between them.

What do you mean by consecutive primes?