mirror of
https://github.com/correl/euler.git
synced 2024-11-23 19:19:53 +00:00
Oops
git-svn-id: file:///srv/svn/euler@75 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
This commit is contained in:
parent
e2e83ec3fe
commit
5dacf3f6b9
1 changed files with 1 additions and 1 deletions
2
e041.py
2
e041.py
|
@ -9,7 +9,7 @@ from e007 import is_prime
|
|||
from e035 import permutations
|
||||
|
||||
def pandigital_prime_generator(n):
|
||||
if n not in [3, 7]:
|
||||
if n not in [3, 7, 9]:
|
||||
raise Exception('Invalid pandigital prime length')
|
||||
for end in [3, 7, 9]:
|
||||
digits = range(1, n + 1)
|
||||
|
|
Loading…
Reference in a new issue