[PR #672] Add eratosthenes sieve method for finding primes below given number #1151

Open
opened 2026-01-29 15:17:59 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/672
Author: @anoopemacs
Created: 10/17/2020
Status: 🔄 Open

Base: masterHead: master


📝 Commits (7)

  • 6cdb91f Add eratosthenes sieve method for finding primes below given number
  • dc1cb7f Add Wikipedia link explaining the Sieve of Eratosthenes alogrithm
  • f50c966 Fix the three commenting mistakes pointed out by @Panquesito7
  • 2460c07 updating DIRECTORY.md
  • 3bfa418 Change variable name to convention, from 'NonPrimers' to 'nonPrimers'
  • a3eb8ce Explain the need for each header and remove unused header <stdio.h>
  • a702d15 Fix a mistake in header file need explaination comment

📊 Changes

2 files changed (+73 additions, -0 deletions)

View changed files

📝 DIRECTORY.md (+1 -0)
misc/sieve_of_eratosthenes.c (+72 -0)

📄 Description

Description of Change

Notes: Added 'Sieve of Eratosthenes' algorithm along with test cases for primes below 100


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/672 **Author:** [@anoopemacs](https://github.com/anoopemacs) **Created:** 10/17/2020 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (7) - [`6cdb91f`](https://github.com/TheAlgorithms/C/commit/6cdb91f44821cadcdde3632f27bac2e1bb71b474) Add eratosthenes sieve method for finding primes below given number - [`dc1cb7f`](https://github.com/TheAlgorithms/C/commit/dc1cb7f55a1f9f20d16816c83297a07d570e0fed) Add Wikipedia link explaining the Sieve of Eratosthenes alogrithm - [`f50c966`](https://github.com/TheAlgorithms/C/commit/f50c966293db7677bf448b61e777ab8f33bbbf50) Fix the three commenting mistakes pointed out by @Panquesito7 - [`2460c07`](https://github.com/TheAlgorithms/C/commit/2460c07ccb6eccca06c380e6eb8098b09cce4e09) updating DIRECTORY.md - [`3bfa418`](https://github.com/TheAlgorithms/C/commit/3bfa418a0e73dcd408cb2a63dd5d40b04f4e65b6) Change variable name to convention, from 'NonPrimers' to 'nonPrimers' - [`a3eb8ce`](https://github.com/TheAlgorithms/C/commit/a3eb8ce8c2000551302809f4257fe21cd2d7f6df) Explain the need for each header and remove unused header <stdio.h> - [`a702d15`](https://github.com/TheAlgorithms/C/commit/a702d1507a05a1257abc17fc996846162367a072) Fix a mistake in header file need explaination comment ### 📊 Changes **2 files changed** (+73 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `DIRECTORY.md` (+1 -0) ➕ `misc/sieve_of_eratosthenes.c` (+72 -0) </details> ### 📄 Description #### Description of Change Notes: Added 'Sieve of Eratosthenes' algorithm along with test cases for primes below 100 <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/672"><img src="https://gitpod.io/api/apps/github/pbs/github.com/anoopemacs/C.git/a702d1507a05a1257abc17fc996846162367a072.svg" /></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:17:59 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1151