TD Interview Question

sudo code to produce the prime number