Fast Enterprises Interview Question

Calculate prime numbers up to a certain number.