Sum of Prime Numbers Under 100

Beginner

In this project, you will learn how to implement a function to check if a number is prime, and then use that function to calculate the sum of all prime numbers below 100.

Python

Introduction

In this project, you will learn how to implement a function to check if a number is prime, and then use that function to calculate the sum of all prime numbers below 100.

👀 Preview

>>> prime(1)
False
>>> prime(6)
False
>>> prime(7)
True
>>> prime_total()
1060

🎯 Tasks

In this project, you will learn:

  • How to write a function to check if a number is prime
  • How to use that function to calculate the sum of all prime numbers below 100

🏆 Achievements

After completing this project, you will be able to:

  • Understand the concept of prime numbers
  • Write a function to check if a number is prime
  • Use that function to solve a problem involving prime numbers
  • Apply your programming skills to a real-world problem

Teacher

labby

Labby

Labby is the LabEx teacher.