A053434 Primes with digits in alphabetical order (in English).
2, 3, 5, 7, 11, 13, 17, 41, 43, 47, 53, 59, 73, 83, 89, 97, 113, 163, 173, 433, 443, 449, 463, 491, 499, 541, 547, 557, 563, 577, 593, 599, 733, 773, 811, 853, 857, 859, 863, 877, 881, 883, 887, 911, 977, 991, 997, 1117, 1163, 1663, 1733, 1777, 4111, 4133, 4177
Offset: 1
Links
- Michael S. Branicky, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Word Sequence
Crossrefs
Intersection of primes and A053432.
Programs
-
Python
from sympy import isprime from itertools import count, islice, combinations_with_replacement as cwr def bgen(): # generator terms of A053432 not ending in 0 or 2 for d in count(1): yield from sorted(int("".join(t)) for t in cwr("85491763", d)) def agen(): yield 2; yield from filter(isprime, bgen()) print(list(islice(agen(), 55))) # Michael S. Branicky, Aug 17 2022