From 5dacf3f6b9bae5413cdb5d2af67a14c4125d9682 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Wed, 5 May 2010 14:38:33 +0000 Subject: [PATCH] Oops git-svn-id: file:///srv/svn/euler@75 e5f4c3ec-3c0c-11df-b522-21efaa4426b5 --- e041.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e041.py b/e041.py index e8fc561..09a2a0f 100644 --- a/e041.py +++ b/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)