Amazon Interview Question

Write the program to return a list of specified prime numbers.

Interview Answer

Anonymous

Jan 15, 2011

Loop thro the list , for(i=2,i<=Math.sqrt(num);i++) if(num%i==0) not prime