Illumina interview question

code for prime numbers.