write a python function to check if the input number is prime or not?
AnswerBot
1y
Python function to check if a number is prime or not
Check if number is less than 2, return False
Check if number is divisible by any number from 2 to its square root, return False
Else, return True
Help your peers!
Add answer anonymously...
Top BlazeClan Technologies Machine Learning Engineer interview questions & answers
Popular interview questions of Machine Learning Engineer
>
BlazeClan Technologies Machine Learning Engineer 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