The problem from the Internet: Sum of Prime Numbers Problem | Python Simple Practice Problem

Опубликовано: 07 Октябрь 2024
на канале: the code panda
400
2

Hello guys, welcome again. Today we are going to solve a simple problem from the internet "Sum of Prime Number from a list" problem.

You can find the problem by the link below: -
https://edabit.com/challenge/GAbxxcsK...

In this problem:
Create a function that takes a list of numbers and returns the sum of all prime numbers in the list.

Examples
sum_primes([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) ➞ 17
sum_primes([2, 3, 4, 11, 20, 50, 71]) ➞ 87

sum_primes([]) ➞ None
Notes:-
Given numbers won't exceed 101.
A prime number is a number that has exactly two divisors.

What is Prime Number?
A number is called Prime Number if it is only divisible by 1 or itself.

Used Library and Topics:
Library - None
Topics: List, Strings, Loops, Functions

Chapters By timestamp:
00:00​​​​ - 00:23 - Introduction of video
00:23 - 01:35 - Introduction Of Problem
01:35 - 02:30 - Prime number checker function
02:30​ - 02:55 - Making a function
03:00 - 03:05 - Extracting item from the list
03:05 - 03:24 - Checking condition using prime number function
03:24 - 03:46 - Printing Output
03:46 - 05:51 - Testing program and corrections

BE MY FRIEND:
🌍Check my website: https://thecodepanda.in/​​​​
📸Add me on Instagram:   / thecodepanda.in  
📕Add me on Facebook:   / thecodepanda.in  

ABOUT MY CHANNEL:
Hi! I’m The Code Panda. On my channel, you will find Programming videos. We love sharing Python, Java, C, C++ Tutorials & programs with you guys as we experience them ourselves.

Watch Complete Python Series :
   • Introduction To Python : What's insid...  

Watch Complete Playlist :
   • Python Daily Programs  

Subscribe here to see more of my videos in your feed!
   / @thecodepanda  

Feel free to add me on Instagram/Facebook/Reddit/Vk: thecodepanda.in

python practice problem, python practice problems, python practice problems for beginners, python practice problems geeks for geeks, python practice problems pdf, python practice problems with solutions pdf, python practice problems for intermediate, python practice problems on lists, python practice problems book, python practice problems and solutions, python practice problems beginners, best python practice problems, python practice problems for beginners pdf, python 3 practice problems for beginners, big o practice problems python, python class practice problems, list comprehension python practice problems, practice python coding problems, python dictionary practice problems, python data science practice problems, python data analysis practice problems, python data structures practice problems, python data types practice problems,
easy python practice problems, python if else practice problems, regular expression practice problems python, python practice problems for beginners with solutions, python practice problems for loops, python practice problems for data science, python practice problems free, python function practice problems