Code for prime no and optimize it the most
AnswerBot
4mo
Code to find prime numbers and optimize it efficiently
Use the Sieve of Eratosthenes algorithm for efficient prime number generation
Avoid checking even numbers after 2 as they cannot be prime
Limit the ...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Intern
Top HR questions asked in BNP Paribas India Solutions Intern
>
BNP Paribas India Solutions Intern Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app