Persistent Systems Interview Question

Write a code to print the first 50 prime numbers