diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-01-14 14:30:56 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-01-14 14:30:56 +0100 |
| commit | f588a2e670f9cd92590ee535619168ca933b8098 (patch) | |
| tree | 3ce32c02c529dd7deef54443597156b521c2342b /python/wip/049-prime_permutations.py | |
| parent | 41b7f521b911e48b80286df701186f18d2bfdff3 (diff) | |
| download | project_euler-f588a2e670f9cd92590ee535619168ca933b8098.tar.gz project_euler-f588a2e670f9cd92590ee535619168ca933b8098.tar.bz2 project_euler-f588a2e670f9cd92590ee535619168ca933b8098.zip | |
problem 47 in python
Diffstat (limited to 'python/wip/049-prime_permutations.py')
| -rw-r--r-- | python/wip/049-prime_permutations.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/python/wip/049-prime_permutations.py b/python/wip/049-prime_permutations.py deleted file mode 100644 index d90754e..0000000 --- a/python/wip/049-prime_permutations.py +++ /dev/null @@ -1,23 +0,0 @@ -from itertools import permutations -from helper.prime import is_prime - - -def constant_inscrease(perms): - - - -def get_prime_permutations(nb): - return sorted([ - int(''.join(x)) - for x in permutations(str(nb), 4) - if (is_prime(int(''.join(x))) - and len(str(int(''.join(x)))) == 4) - ]) - -# print(get_prime_permutations(1487)) -for i in range(1000, 10_000): - if not is_prime(i): - continue - print(get_prime_permutations(i)) -# if all([is_prime(p) for p in permutations]): -# print(sorted(permutations)) |
