OFFSET
1,1
EXAMPLE
n=5,m=1 (5!-1)/1 = 119=7*17 not prime m advances to 2.
n=5,m=2 (5!-2)/2 = 118/2 = 59 prime keep it.
PROG
(PARI) nfactm2d2(n, m) = { for(x=1, n, for(k=1, m, y=floor((x!- k)/k); if(isprime(y), print1(y", "); break) ) ) }
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Cino Hilliard, Dec 05 2003
STATUS
approved