OFFSET
1,1
COMMENTS
Referred to as "freak-show composites" by Doug Massey (see link), who noted that they are exceptionally difficult to factor by hand using trial division.
4181, 4183, 4187, and 4189 are the first four consecutive terms that differ only in the last decimal digit. The next such set of four consecutive terms begins at 806621.
Ankit Bisain says that for sufficiently large x, there are fewer values in this sequence less than x than there are primes less than x.
EXAMPLE
The smallest prime factor of 4189 is 59, which is greater than 4189^(2/5).
MAPLE
q:= n-> not (isprime(n) or issqr(n) or min(numtheory[factorset](n))^5<n^2):
select(q, [$4..2030])[]; # Alois P. Heinz, Jan 07 2021
MATHEMATICA
nscQ[n_]:=CompositeQ[n]&&!IntegerQ[Sqrt[n]]&&FactorInteger[n][[1, 1]]>= Surd[n^2, 5]; Select[Range[1200], nscQ] (* Harvey P. Dale, Jul 25 2021 *)
PROG
(PARI) isok(n) = (n>1) && !isprime(n) && !issquare(n) && (factor(n)[1, 1]^5 >= n^2); \\ Michel Marcus, Jan 07 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Phil Scovis, Jan 07 2021
STATUS
approved