Texas Instruments interview question

a programming question abut finding prime numbers