UBS Interview Question

Write a script that prints out the first 30 prime numbers then stops.