added problem 7 and every nth prime to prime gen