Cognizant Interview Question

Write MOST OPTIMIZED program of prime numbers.

Interview Answer

Anonymous

Feb 17, 2019

only one thing the interviewer wanted to check was whether I divide number by n/2 or not to minimize the loop iterations.

1