OFFSET
1,1
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1)=10 and a(2)=20 are divisible by 5 = nextprime(sqrt(10)) = nextprime(sqrt(20)) and neither a prime squared (as are 4 and 9) nor product of consecutive primes (as are 6 and 15).
5,7,8 are not in this sequence, since not a multiple of 3=nextprime(sqrt(5))=nextprime(sqrt(8)).
MATHEMATICA
dpQ[n_]:=Module[{srn=Sqrt[n], a, b}, a=If[PrimeQ[srn], srn, NextPrime[ srn]]; b=If[PrimeQ[srn], srn, NextPrime[srn, -1]]; Divisible[n, a]&& !Divisible[ n, b]]; Select[Range[2000], dpQ] (* Harvey P. Dale, Oct 10 2011 *)
PROG
(PARI) for( n=5, 1999, n % nextprime(sqrtint(n-1)+1) & next; n % precprime(sqrtint(n)) & print1(n", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Mar 10 2009
STATUS
approved