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!)
A260985 Numbers n such that A001222(n) - A001221(n) is an odd prime. 1
16, 48, 64, 72, 80, 81, 108, 112, 162, 176, 192, 200, 208, 240, 256, 272, 288, 304, 320, 336, 360, 368, 392, 405, 432, 448, 464, 496, 500, 504, 528, 540, 560, 567, 592, 600, 624, 625, 648, 656, 675, 688, 704, 729, 752, 756, 768, 792, 800, 810, 816, 832, 848 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
16 is in the sequence because A001222(16) - A001221(16) = 3.
80 is in the sequence because A001222(80) - A001221(80) = 3.
192 is in the sequence because A001222(192) - A001221(192) = 5.
MATHEMATICA
Select[Range[10^3], !PrimeQ[#] && PrimeQ[p = PrimeOmega[#] - PrimeNu[#]] && OddQ[p] &]
PROG
(PARI) isok(n) = (d=bigomega(n)-omega(n)) && (d != 2) && isprime(d); \\ Michel Marcus, Aug 07 2015
(Python)
from sympy import isprime, primefactors
def omega(n): return 0 if n==1 else len(primefactors(n))
def bigomega(n): return 0 if n==1 else bigomega(n//min(primefactors(n))) + 1
def ok(n):
d = bigomega(n) - omega(n)
return d%2 and isprime(d)
print([n for n in range(1, 1001) if ok(n)]) # Indranil Ghosh, Apr 25 2017
CROSSREFS
Subsequence of A013929.
Sequence in context: A235548 A223440 A223402 * A322448 A354181 A264164
KEYWORD
nonn,easy
AUTHOR
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 23 09:48 EDT 2024. Contains 371905 sequences. (Running on oeis4.)