Write a program to find a prime number from 1 to n, where n is integer.?
AnswerBot
7mo
Program to find prime numbers from 1 to n
Iterate from 2 to n and check if each number is prime
Use a nested loop to check divisibility by numbers less than the current number
A prime number is only divi...read more
Help your peers!
Add answer anonymously...
Top Infinite Computer Solutions Senior Technical Lead interview questions & answers
Popular interview questions of Senior Technical Lead
Top HR questions asked in Infinite Computer Solutions Senior Technical Lead
>
Infinite Computer Solutions Senior Technical Lead 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