git-svn-id: file:///srv/svn/euler@75 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
This commit is contained in:
Correl Roush 2010-05-05 14:38:33 +00:00
parent e2e83ec3fe
commit 5dacf3f6b9

View file

@ -9,7 +9,7 @@ from e007 import is_prime
from e035 import permutations from e035 import permutations
def pandigital_prime_generator(n): def pandigital_prime_generator(n):
if n not in [3, 7]: if n not in [3, 7, 9]:
raise Exception('Invalid pandigital prime length') raise Exception('Invalid pandigital prime length')
for end in [3, 7, 9]: for end in [3, 7, 9]:
digits = range(1, n + 1) digits = range(1, n + 1)