Free lab Real Python 3. Zero installs. Your code stays in this browser. Open the playground

Prime Hunter

Hard · 75 XP

Print all prime numbers between 2 and 50 on one line separated by spaces.

Target output
2 3 5 7 11 13 17 19 23 29 31 37 41 43 47
Blank · autosaved
PYprime-sieve.py
Run your code to check it…
Your next ten minutes

Write Python that does something useful.

Start free. No install, no card, no passive video marathon.

Start learning free → Explore the path