The return of Nconsecutive composite numbers is guaranteed :
(N+1)!+2,(N+1)!+3........(N+1)!+(N+1)
I used this to find 5 consecutive compound numbers in R using:
N=5
for(i in 2:6){a=factorial(N+1)+i;print(a);}
However, I want first the 'N' consecutive compound numbers that this code is not guaranteed to return. For example, for N=5I want 24,25,26,27,28.
source
share