OFFSET
1,1
EXAMPLE
226 = 2*113, 113-2 = 111 = 3*37, 37-3 = 34 = 2*17, 17-2 = 15 = 3*5 but 5-3 = 2 is not a squarefree semiprime.
327 = 3*109, 109-3 = 106 = 2*53, 53-2 = 51 = 3*17, 17-3 = 14 = 2*7 but 7-2 = 5 is not a squarefree semiprime.
MAPLE
with(numtheory): P:=proc(n, h) local a, j, ok; ok:=1; a:=n; for j from 1 to h do if issqrfree(a) and nops(factorset(a))=2 then a:=ifactors(a)[2]; a:=a[1][1]-a[2][1]; else ok:=0; break; fi; od; if ok=1 then n; fi; end: seq(P(i, 4), i=1..2*10^3);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Dec 21 2017
STATUS
approved