Generates 'n' prime numbers, where 'n' is input from the user.