|
Search: id:A095179
|
|
|
| A095179 |
|
Numbers whose reversed digit representation is prime, when leading zeros are omitted. |
|
+0 4
|
|
| 2, 3, 5, 7, 11, 13, 14, 16, 17, 20, 30, 31, 32, 34, 35, 37, 38, 50, 70, 71, 73, 74, 76, 79, 91, 92, 95, 97, 98, 101, 104, 106, 107, 110, 112, 113, 118, 119, 124, 125, 128, 130, 131, 133, 134, 136, 140, 142, 145, 146, 149, 151, 152, 157, 160, 164, 166, 167, 170, 172
(list; graph; listen)
|
|
|
OFFSET
|
0,1
|
|
|
EXAMPLE
|
The number 70 in reverse is 07 which is prime.
|
|
PROGRAM
|
(PARI) r(n) = for(x=1, n, y=eval(rev(x)); if(isprime(y), print1(x", "))) \ Get the reverse of the input string rev(str) = { local(tmp, j, s); tmp = Vec(Str(str)); s=""; forstep(j=length(tmp), 1, -1, s=concat(s, tmp[j])); return(s) }
|
|
CROSSREFS
|
Sequence in context: A032524 A118017 A097312 this_sequence A074895 A072697 A090421
Adjacent sequences: A095176 A095177 A095178 this_sequence A095180 A095181 A095182
|
|
KEYWORD
|
base,easy,nonn
|
|
AUTHOR
|
Cino Hilliard (hillcino368(AT)gmail.com), Jun 21 2004
|
|
|
Search completed in 0.002 seconds
|