VOOZH
about
URL: https://oeis.org/A385770
⇱ A385770 - OEIS
login
A385770
Primes having only {0, 6, 7} as digits.
8
7, 67, 607, 677, 6007, 6067, 6607, 7607, 60077, 60607, 66067, 67607, 67777, 70067, 70607, 70667, 76607, 76667, 76777, 606077, 606607, 607007, 607067, 607667, 660067, 660607, 666067, 666607, 666667, 666707, 670777, 676007, 677077, 677767, 700067
(
list
;
graph
;
refs
;
listen
;
history
;
text
;
internal format
)
OFFSET
1,1
LINKS
Jason Bard,
Table of n, a(n) for n = 1..10000
Index to entries for primes with digits in a given set
EXAMPLE
6007 is a term because it is prime and has only {0,6,7} as digits.
MATHEMATICA
Select[FromDigits/@Tuples[{0, 6, 7}, 5], PrimeQ]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 6, 7]];
(Python) print(list(islice(primes_with("067"), 41))) # uses function/imports in
A385776
(PARI) primes_with(, 1, [0, 6, 7]) \\ uses function in
A385776
CROSSREFS
Subsequence of
A030432
.
Cf.
A000040
,
A020469
,
A385776
.
Sequence in context:
A250275
A240373
A386082
*
A077789
A250165
A186655
Adjacent sequences:
A385767
A385768
A385769
*
A385771
A385772
A385773
KEYWORD
nonn
,
base
,
easy
AUTHOR
Jason Bard
, Jul 09 2025
STATUS
approved