Blog code for n consecutive numbers with m prime factors