How to write a program to find sum of first 10 prime numbers using for loop in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to write a program to find sum of first 10 prime numbers using for loop in python

7th Jul 2020, 12:30 PM
ASHUTOSH
ASHUTOSH - avatar
3 Answers
+ 7
Show your attempt
7th Jul 2020, 12:35 PM
Nilesh
+ 3
i=0 While count<10: If prime number: count+1 hopefully you know how to find a prime number or you can show your attempt so we can further help you
7th Jul 2020, 12:37 PM
Abhay
Abhay - avatar
0
Here i have a code that find whether a number is prime or jot maybe u can try looping the function and adding them...Share the code if u succeed :) https://code.sololearn.com/cUdLXB1Z8h10/?ref=app
7th Jul 2020, 12:59 PM
Chaitanya Giri
Chaitanya Giri - avatar