|
|
A200927
|
|
Difference between (least semiprime >= n) and (largest semiprime <= n).
|
|
1
|
|
|
0, 2, 0, 3, 3, 0, 0, 4, 4, 4, 0, 0, 6, 6, 6, 6, 6, 0, 0, 3, 3, 0, 0, 7, 7, 7, 7, 7, 7, 0, 0, 0, 3, 3, 0, 0, 7, 7, 7, 7, 7, 7, 0, 3, 3, 0, 2, 0, 4, 4, 4, 0, 2, 0, 0, 4, 4, 4, 0, 3, 3, 0, 4, 4, 4, 0, 5, 5, 5, 5, 0, 3, 3, 0, 5, 5, 5, 5, 0, 3, 3, 0, 0, 0, 4, 4, 4
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
4,2
|
|
COMMENTS
|
a(n) = 0 if and only if n is semiprime.
|
|
LINKS
|
|
|
MAPLE
|
for a from n do
if numtheory[bigomega](a) = 2 then
return a;
end if;
end do:
end proc;
prevSpr := proc(n)
for a from n by -1 do
if numtheory[bigomega](a) = 2 then
return a;
end if;
end do:
end proc;
end proc:
|
|
MATHEMATICA
|
Table[a = b = 0; While[! PrimeOmega[n - a] == 2, a++]; While[! PrimeOmega[n + b] == 2, b++]; a + b, {n, 4, 100}]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|