Cisco interview question

write a code that finds a prime number