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!)
A045959 Numbers k in A045954 such that k-1 is prime. 2
4, 6, 12, 18, 20, 42, 44, 54, 68, 84, 90, 98, 102, 108, 114, 132, 138, 140, 150, 164, 182, 198, 212, 228, 230, 234, 278, 282, 308, 314, 332, 354, 374, 390, 420, 434, 458, 522, 524, 548, 570, 578, 588, 602, 614, 642, 644, 660, 674, 684, 710, 740, 822, 882, 884, 938, 954 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
seq[max_] := Module[{lst = Range[2, max, 2], i = 2, len}, While[i <= (len = Length@lst) && (k = lst[[i]]) <= len, lst = Drop[lst, {k, len, k}]; i++]; Select[lst, PrimeQ[# - 1] &]]; seq[1000] (* Amiram Eldar, Mar 20 2024, after Robert G. Wilson v at A045954 *)
CROSSREFS
Subsequence of A008864.
Sequence in context: A310599 A074997 A280383 * A310600 A296507 A072568
KEYWORD
nonn
AUTHOR
EXTENSIONS
Title corrected by Sean A. Irvine, Mar 29 2021
STATUS
approved

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 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)