OFFSET
1,2
EXAMPLE
k=0: Of the three numbers (0,1,2), exactly one is prime, so 0*1*2/6 = 0 is in the sequence.
k=1: Of the three numbers (1,2,3), exactly two are prime, so 1*2*3/6 = 1 is not in the sequence.
k=4: Of the three numbers (4,5,6), exactly one is prime, so 4*5*6/6 = 20 is in the sequence.
MAPLE
isPr := proc(n) if isprime(n) then 1; else 0; end if; end proc: for n from 0 to 300 do if isPr(n)+isPr(n+1)+isPr(n+2) = 1 then printf("%d, ", n*(n+1)*(n+2)/6 ) ; end if; end do: # R. J. Mathar, May 01 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Dec 15 2008
EXTENSIONS
Corrected (455, 14190, 17296 inserted, 16560 removed etc.) by R. J. Mathar, May 01 2010
Name and Example section clarified by Jon E. Schoenfield, Aug 06 2017
STATUS
approved