Illumina Interview Question

code for prime numbers.