---
title: "Discussion on \"Sieve of Eratosthenes: An Interesting Algorithm\" | Hashnode"
description: "Discussion on \"Sieve of Eratosthenes: An Interesting Algorithm\". A little back story 📜\nOne day, while learning algorithms in JavaScript, I found this challenge:\n\nUsing a for loop, iterate from 0 to 100 and return an array of all prime numbers within that range.\n\nIt seemed easy initially, but I couldn't quite figu..."
url: "https://hashnode.com/posts/sieve-of-eratosthenes-an-interesting-algorithm-1--deleted/62c460f66d73625bbffdc4c9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Sieve of Eratosthenes: An Interesting Algorithm](https://dpkreativ.hashnode.dev/sieve-of-eratosthenes-an-interesting-algorithm-1--deleted?utm_source=hashnode&utm_medium=feed)

A little back story 📜 One day, while learning algorithms in JavaScript, I found this challenge: Using a for loop, iterate from 0 to 100 and return an array of all prime numbers within that range. It seemed easy initially, but I couldn't quite figu...

Jul 5, 2022 · 4 min read · dpkreativ.hashnode.dev  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#sieve-of-eratosthenes](https://hashnode.com/tag/sieve-of-eratosthenes)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Divine Orji](https://hashnode.com/@dpkreativ)

@dpkreativ

  
[View profile](https://hashnode.com/@dpkreativ)

Software Engineer

I am a software engineer passionate about building fast, scalable apps with beautiful user interfaces.

## Responses 1

Markdown supported · ⌘↵ to post

[Developer Avocado](https://hashnode.com/@AvocaDEV)

[Jul 6, 2022](https://hashnode.com/posts/sieve-of-eratosthenes-an-interesting-algorithm-1--deleted/62c460f66d73625bbffdc4c9/comment/62c56d8c7b0f3b700c544ec8)

Another great and clear article! I 100% agree on every aspect of it.

[Divine Orji](https://hashnode.com/@dpkreativ)

[Jul 6, 2022](https://hashnode.com/posts/sieve-of-eratosthenes-an-interesting-algorithm-1--deleted/62c460f66d73625bbffdc4c9/comment/62c56d8c7b0f3b700c544ec8#reply-62c5effbc8efe473b8fe4c4f)

Thank you very much!
