Yahoo Interview Question

Write a routine to find prime numbers.

Interview Answers

Anonymous

Mar 7, 2010

Solution, key to the solution is to compare if (int a/b == a/b)....then it is a prime.

Anonymous

Jul 1, 2011

if a%b == a then a is a prime number