Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A111348
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A111348 Numbers n such that the result of swapping the 3rd and next to the next to the last digit of a number is prime. +0
3
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, 175, 179, 181, 182, 188, 191, 194, 196, 199, 200, 300, 301, 305, 310, 311, 313, 316, 320, 322, 325 (list; graph; listen)
OFFSET

1,1

COMMENT

Similar to A095179 for the first few terms. Conjecture: The number of terms in this sequence is infinite.

FORMULA

For N1=a(n)*10^n+a(n-1)*10^(n-1)+a(n-2)*10^(n-2)+...+a(2)*10^2+a(1)*10 + a(0), N2=a(n)*10^n+a(n-1)*10^(n-1)+a(2)*10^(n-2)+...+a(n-2)*10^2+a(1)*10 + a(0) is prime

PROGRAM

(PARI) swapn(n, d) = \ d is the digit position to swap { local(j, ln, x, s, y, y2, tmp); for(x=10^(d-1), 10^(d-1)+n, s = Str(x); ln = length(s); y = eval(Vec(s)); tmp=y[d]; y[d]=y[ln-d+1]; y[ln-d+1]=tmp; y2=0; for(j=1, ln, y2+=y[j]*10^(ln-j); ); if(isprime(y2), print1(x", ")) ) }

CROSSREFS

Cf. A095179, A111347, A111349.

Adjacent sequences: A111345 A111346 A111347 this_sequence A111349 A111350 A111351

Sequence in context: A117837 A060400 A128717 this_sequence A081649 A126118 A118773

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Nov 05 2005

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 October 9 14:06 EDT 2008. Contains 144831 sequences.


AT&T Labs Research