+ 1

I want to make code to count prime numbers in python 3.0

input n= number of numbers you wnat for example n= 5 1 2 3 4 5 output 3 mean that 3 prime numbers in it

8th Apr 2019, 9:30 PM
TheMentorIoErorr
TheMentorIoErorr - avatar
1 Odpowiedź
+ 1
You can use my code as a function inside your code. It will check if a number is prime. Then all you need is to run a loop with the numbers you want to be checked and a counter. ;) https://code.sololearn.com/c1i2d5q0rHBE/?ref=app
8th Apr 2019, 9:44 PM
Pedro Tortello
Pedro Tortello - avatar