Amazon interview question

Print first 'N' prime numbers