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!)
A071218 Numbers k such that the largest prime factor of the sum of the two consecutive primes prime(k) + prime(k+1) is at most k. 1
2, 3, 4, 5, 6, 7, 8, 10, 13, 14, 15, 16, 17, 18, 20, 21, 22, 25, 26, 27, 28, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 52, 53, 55, 56, 57, 59, 60, 61, 62, 64, 65, 66, 68, 69, 70, 72, 73, 74, 78, 79, 80, 81, 82, 83, 85, 88, 89, 90, 91, 92, 94 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
If A071216(k) <= k, then k is in this sequence.
EXAMPLE
k=25: prime(25) + prime(26) = 97 + 101 = 198 = 2*3*3*11 and 11 < 25, so 25 is in this sequence;
MATHEMATICA
Select[Range[94], FactorInteger[Prime[#] + Prime[# + 1]][[-1, 1]] <= # &] (* Giovanni Resta, Jul 13 2018 *)
PROG
(PARI) isok(n) = vecmax(factor(prime(n)+prime(n+1))[, 1]) <= n; \\ Michel Marcus, Jul 09 2018
CROSSREFS
Sequence in context: A263363 A061920 A062010 * A215775 A363149 A236310
KEYWORD
nonn
AUTHOR
Labos Elemer, May 17 2002
EXTENSIONS
Edited by Jon E. Schoenfield, Jul 08 2018
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 March 28 09:04 EDT 2024. Contains 371240 sequences. (Running on oeis4.)