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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A088866 Primes where flipping 6 and 9 is also prime. 0
97, 67, 193, 197, 163, 167, 293, 263, 397, 367, 491, 461, 593, 563, 907, 941, 947, 953, 991, 977, 983, 607, 641, 647, 653, 677, 683, 661, 1091, 1093, 1061, 1063, 1193, 1163, 1597, 1567, 1901, 1907, 1913, 1993, 1997, 1601, 1607, 1613, 1663, 1667, 2297, 2267 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

EXAMPLE

991 is prime. flipping the 9's we get 661 which is also prime.

PROG

(PARI) flip69pr(n) = { for(x=1, n, y=x; v=0; v1=0; f=0; ln =length(Str(x)); a = vector(ln); b = vector(ln); forstep(j=ln, 1, -1, r = y%10; a[j]=r; b[j]=r; if(r==6, a[j] = 9; f=1); if(r==9, a[j] = 6; f=1); y = floor(y/10); ); forstep(j=ln, 1, -1, v=v+a[j]*10^(ln-j); v1=v1+b[j]*10^(ln-j); ); if(isprime(v) && isprime(v1) && f, print1(v", ")); ) }

CROSSREFS

Sequence in context: A068830 A033417 A182690 * A075478 A126146 A112667

Adjacent sequences:  A088863 A088864 A088865 * A088867 A088868 A088869

KEYWORD

nonn,base

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Nov 26 2003

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 16 21:51 EST 2012. Contains 205978 sequences.