Texas Instruments Interview Question

a programming question abut finding prime numbers