The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A309760 Even numbers k such that k-p is composite where p is the largest prime <= k. 0

%I #29 Sep 18 2019 01:28:51

%S 122,148,190,208,220,250,292,302,326,346,418,430,476,518,532,538,556,

%T 586,628,640,670,700,718,782,796,806,820,838,848,872,896,902,928,962,

%U 1006,1030,1048,1060,1078,1084,1138,1144,1150,1162,1180,1210,1246,1258,1268,1274

%N Even numbers k such that k-p is composite where p is the largest prime <= k.

%t Select[Range[4, 1274, 2], CompositeQ[# - NextPrime[#, -1]] &] (* _Amiram Eldar_, Sep 17 2019 *)

%o (PARI) is(n) = if(n%2==1 ||n==2, return(0)); my(c = n - precprime(n)); !isprime(c) && c != 1 \\ _David A. Corneth_, Aug 21 2019

%Y Cf. A007917, A018252, A049711, A025583.

%K nonn

%O 1,1

%A _Aaron Schäfers_, Aug 15 2019

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 May 17 01:28 EDT 2024. Contains 372555 sequences. (Running on oeis4.)