OFFSET
1,1
LINKS
Marius A. Burtea, Table of n, a(n) for n = 1..1601 (up to 10^9)
MAPLE
read transforms : isA006567 := proc(n) local nrev ; if isprime(n) then nrev := digrev(n) ; nrev <> n and isprime(nrev)) ; else false ; fi ; end: isA137836 := proc(n) local dgs ; if isA006567(n) then dgs := convert(convert(n, base, 10), set) ; if dgs minus {2, 3, 5, 7} <> {} then false ; elif nops(dgs) <> 4 then false ; else true ; fi ; else false ; fi ; end: for n from 1 to 1000000 do p := ithprime(n) ; if isA137836(p) then print(p) ; fi ; od: # R. J. Mathar, Feb 28 2008
MATHEMATICA
Take[With[{nn=2}, Union[FromDigits/@Select[Select[Flatten[Permutations/@ Flatten[ Table[Join[{2, 3, 5, 7}, Table[2, {i}], Table[3, {j}], Table[5, {k}], Table[7, {l}]], {i, 0, nn}, {j, 0, nn}, {k, 0, nn}, {l, 0, nn}], 3], 1], PrimeQ[ FromDigits[#]]&], PrimeQ[FromDigits[Reverse[#]]]&]]], 100] (* Harvey P. Dale, Nov 07 2012 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Lekraj Beedassy, Feb 12 2008
EXTENSIONS
Corrected and extended by R. J. Mathar, Feb 28 2008
STATUS
approved