[go: up one dir, main page]

login
A046484
Primes that are palindromic in bases 10 and 16.
0
2, 3, 5, 7, 11, 353, 787, 94049, 98689, 190080091, 3405684865043, 397922151229793
OFFSET
1,1
COMMENTS
Intersection of A002385 and A029732. - Michel Marcus, Jun 09 2013
EXAMPLE
787_10 = 313_16. - Jon E. Schoenfield, Apr 10 2021
PROG
(PARI) ispal(v) = {for(i=1, #v\2, if (v[i] != v[#v-i+1], return(0)); ); return(1); }; lista(nn) = {forprime(p=2, nn, if (ispal(digits(p, 10)) && ispal(digits(p, 16)), print1(p, ", ")); ); } \\ Michel Marcus, Jun 09 2013
CROSSREFS
Sequence in context: A046481 A082625 A030286 * A346168 A062888 A046483
KEYWORD
nonn,hard,base
AUTHOR
STATUS
approved