I am able to print the terms of the series excluding multiples of N2 but not able to print the first N1 terms