OFFSET
1,1
COMMENTS
Strong primes: prime(n) > (prime(n-1) + prime(n+1))/2.
EXAMPLE
121 = 11^2 and 11 > (7+13)/2.
187 = 11*17 and 11 > (7+13)/2, 17 > (13+19)/2.
493 = 17*29 and 17 > (13+19)/2, 29 > (23+31)/2.
MATHEMATICA
strongQ[p_] := p > 2 && 2*p > Total[NextPrime[p, {-1, 1}]]; Select[Range[1, 3000, 2], MemberQ[{{1, 1}, {2}}, (f = FactorInteger[#])[[;; , 2]]] && AllTrue[f[[;; , 1]], strongQ] &] (* Amiram Eldar, Aug 07 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Massimo Kofler, Aug 07 2023
EXTENSIONS
Definition clarified by N. J. A. Sloane, Oct 08 2023
STATUS
approved