login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A095179 Numbers whose reversed digit representation is prime, when leading zeros are omitted. 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; refs; listen; history; internal format)
OFFSET

0,1

EXAMPLE

The number 70 in reverse is 07 which is prime.

PROG

(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) }

(PARI) is_A095179(n)=isprime(eval(Strchr(vecextract(Vec(Vecsmall(Str(n))), "-1..1")))) \\ M. F. Hasler, Jan 13 2012

CROSSREFS

Cf. A007500 (primes in this sequence), A204232 (base 2 analog).

Sequence in context: A007933 A032524 A097312 * A074895 A072697 A090421

Adjacent sequences:  A095176 A095177 A095178 * A095180 A095181 A095182

KEYWORD

base,easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Jun 21 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 22:48 EST 2012. Contains 206085 sequences.