login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A296236 Prime-slideable numbers: such that a prime can be obtained by moving each digit d by d places either to the left or right, without creating a hole or overlap. 1
2, 3, 5, 7, 11, 13, 20, 31, 35, 79, 97, 112, 113, 300, 311, 1021, 1124, 1201, 1243, 1333, 1465, 1546, 2011, 2114, 2231, 2312, 2536, 3001, 3122, 3337, 6752, 6877, 7423, 7441, 7687, 7742, 7867, 7966, 8956, 8996, 10031, 10114, 10211, 11113, 11144, 11221, 11300, 11311, 11336, 11354, 11413 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

A 2-digit number 10a + b is in the sequence if |a - b| = 2 (or 0) and 10b + a is prime.

LINKS

Table of n, a(n) for n=1..51.

EXAMPLE

The number 35 is in the sequence because if the digit 3 is moved three places to the left and the digit 5 is moved five places to the left, this results in the number 53 (three place to the left from the initial position, which does not matter), and 53 is prime.

PROG

(PARI) is_A296236(n, d=matdiagonal(n=digits(n)), v=[1..#n]+n)={!n||forvec(s=vector(#n, i, [0, 1]), vecmax(p=v-2*s*d)-vecmin(p)==#p-1&&#p==#Set(p)&&isprime(sum(i=1, #p, 10^(vecmax(p)-p[i])*n[i]))&&return(1))}

CROSSREFS

Cf. A296242 (slideable numbers), A296010 (slideable numbers).

Sequence in context: A067910 A171574 A280937 * A334041 A181172 A075430

Adjacent sequences:  A296233 A296234 A296235 * A296237 A296238 A296239

KEYWORD

nonn,base

AUTHOR

M. F. Hasler, Dec 09 2017

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 29 05:30 EDT 2021. Contains 346340 sequences. (Running on oeis4.)