login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A117095
Numbers n such that nextprime(7*n)>7*nextprime(n) (if p is prime then nextprime(p)=p).
0
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 42, 43, 46, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149
OFFSET
1,1
EXAMPLE
nextprime(7*2)=17 and nextprime(7)*nextprime(2)=7*2=14 then 2 is member because 17>14
MATHEMATICA
nPrime[x_]:=If[PrimeQ[x], x, NextPrime[x]]; Select[Range[150], nPrime[7#]> 7nPrime[#]&] (* Harvey P. Dale, Feb 16 2012 *)
PROG
(PARI) for(i=1, 150, if(nextprime(7*i)>nextprime(7)*nextprime(i), print1(i, ", ")))
CROSSREFS
Sequence in context: A369093 A171019 A249825 * A054403 A092579 A171028
KEYWORD
easy,nonn
AUTHOR
Mohammed Bouayoun (mohammed.bouayoun(AT)sanef.com), Apr 18 2006
STATUS
approved