Skip to content
The DSA Woodshed
Home
Guide
Reference
Algorithms
Start
Search the site
Search the reference sheets, guide, and algorithm pages. Results update as you type.
Mode
Light
Dark
System
✓
Search the site
Search the reference sheets, guide, and algorithm pages. Results update as you type.
The DSA Woodshed
Home
Guide
Reference
Algorithms
Start
Guide
Interview Practice Evidence
Getting Started
When to Use What
Learning Paths
Source of Truth
Local VS Code Quickstart
Algorithms
Arrays
Backtracking
Bit Manipulation
Dynamic Programming
Graphs
Greedy
Heaps
Linked Lists
Math
Patterns
Recursion
Searching
Sliding Window
Sorting
Stacks & Queues
Strings
Trees
Two Pointers
Reference sheets
Python Standard Library
Data Structures
Algorithm Templates
Big-O Complexity
Common Patterns
System Design
Interview Day Guide
Cross-Reference Guide
Python 3.14 & Modern Patterns
Whiteboard Performance & Panic Protocol
14-Day Whiteboard Ramp
Mode
Light
Dark
System
✓
The DSA Woodshed
/
Algorithms
/
Math
Math
Sieve Of Eratosthenes
Sieve of Eratosthenes — all primes up to n