program to print n prime numbers