login
Primes that are palindromic in bases 10 and 16.
0

%I #18 Aug 11 2024 14:41:31

%S 2,3,5,7,11,353,787,94049,98689,190080091,3405684865043,

%T 397922151229793

%N Primes that are palindromic in bases 10 and 16.

%C Intersection of A002385 and A029732. - _Michel Marcus_, Jun 09 2013

%H P. De Geest, <a href="https://www.worldofnumbers.com/palpri.htm">World!Of Palindromic Primes</a>

%e 787_10 = 313_16. - _Jon E. Schoenfield_, Apr 10 2021

%o (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

%Y Cf. A002385, A029731.

%K nonn,hard,base

%O 1,1

%A _Patrick De Geest_ and _Warut Roonguthai_ Aug 15 1998