Yahoo interview question

Write a routine to find prime numbers.

Interview Answers

Anonymous

7 Mar 2010

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

Anonymous

1 July 2011

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