|
|
A175275
|
|
Base-3 pandigital primes: primes having at least one of each digit 0,1,2 when written in base 3.
|
|
8
|
|
|
11, 19, 29, 47, 59, 61, 73, 83, 89, 97, 101, 103, 107, 113, 127, 137, 139, 163, 167, 173, 179, 181, 191, 193, 197, 199, 223, 227, 251, 257, 263, 269, 277, 281, 293, 307, 311, 313, 317, 331, 347, 349, 353, 359, 379, 383, 389, 397, 409, 419, 421, 431, 433, 439
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
MATHEMATICA
|
Select[Range[500], Min @ DigitCount[#, 3] > 0 && PrimeQ[#] &] (* Amiram Eldar, Apr 13 2021 *)
|
|
PROG
|
(PARI) base(n, b=16, s=0)={local(a=[n%b]); while(0<n\=b, a=concat(n%b, a)); if(s, s=32*s+23; Strchr(vectorsmall(#a, i, if(a[i]>9, s, 48)+a[i])), a)}
forprime(p=1, 999, #Set(base(p, 3))==3&print1(p", "))
|
|
CROSSREFS
|
Cf. A050288, A138837, A175271, A175272, A175273, A175274, A175276, A175277, A175278, A175279, A175280.
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|