+ 1
Guys how to find prime no. between 0 to 100 using python?
4 Antworten
+ 13
can you please show your try first then everyone try to help you out else it looks like you only depend on community instead of trying first so first show your try then anyone try to help you out
+ 9
Best would be to make a loop and check for each number if any of the numbers between 2 and the square root of self is a divisor (modulo of the division equals zero).
0
Here's my code using lambdas...
https://code.sololearn.com/cXmS8ghAVToX/?ref=app