OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
MAPLE
read(transforms) : isA006567 := proc(n) local digs, prev ; if isprime(n) then prev := digrev(n) ; if n <> prev and isprime(prev) then true ; else false ; fi ; else false ; fi ; end: isA128388 := proc(n) local digs ; if isA006567(n) then digs := convert(convert(n, base, 10), set) ; if digs minus {2, 3, 5, 7} = {} then true ; else false ; fi ; else false ; fi ; end: isA133753 := proc(n) if isA128388(n) then if digrev(n) < n then true; else false ; fi ; else false ; fi ; end: for n from 1 to 200000 do p := ithprime(n) ; if isA133753(p) then printf("%d, ", p) ; fi ; od: # R. J. Mathar, Jan 30 2008
MATHEMATICA
Select[(Table[(Sort/@Select[{#, IntegerReverse[#]}&/@Select[FromDigits/@Tuples[ {2, 3, 5, 7}, n], PrimeQ], AllTrue[#, PrimeQ]&])[[;; , 2]]//Union, {n, 2, 6}]//Flatten//Union), !PalindromeQ[#]&] (* Harvey P. Dale, Sep 15 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Lekraj Beedassy, Jan 21 2008
EXTENSIONS
Extended by Ray Chandler and R. J. Mathar, Jan 30 2008
STATUS
approved