Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A088866
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A088866 Primes where flipping 6 and 9 is also prime. +0
1
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; listen)
OFFSET

1,1

EXAMPLE

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

PROGRAM

(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: A094498 A068830 A033417 this_sequence A075478 A126146 A112667

Adjacent sequences: A088863 A088864 A088865 this_sequence A088867 A088868 A088869

KEYWORD

nonn,base

AUTHOR

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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 11 12:57 EST 2009. Contains 170656 sequences.


AT&T Labs Research