login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A231483 Smallest k > A082467(n) such that n-k and n+k are both prime. 1

%I #23 Nov 11 2013 03:42:53

%S 9,8,15,18,7,12,15,10,15,18,7,28,15,10,27,12,7,24,15,8,21,18,5,30,15,

%T 8,27,24,11,18,9,10,15,30,13,18,15,10,21,30,7,42,21,10,33,18,7,30,21,

%U 10,9,18,11,30,27,8,33,24,11,48,21,8,21,30

%N Smallest k > A082467(n) such that n-k and n+k are both prime.

%C Starting at n=20 just because there are some n<20 without solution like for n=19, for the least k (A082467) it start at 4 as no solution for n<4.

%H Pierre CAMI, <a href="/A231483/b231483.txt">Table of n, a(n) for n = 20..10000</a>

%o (PARI) a(n) = {k=1; while(isprime(n-k)*isprime(n+k) == 0, k++); k++; while(isprime(n-k)*isprime(n+k) == 0, k++); k; } \\ _Michel Marcus_, Nov 10 2013

%Y Cf. A082467.

%K nonn

%O 20,1

%A _Pierre CAMI_, Nov 09 2013

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)