C++ Professional

Capstone: print the primes up to 20, run it, and have the Academy AI grade it.

1 lessons 🛠 Project-based
Lessons Project Certificate

📚 Lessons

1 Brief & rubric

This level is project-based. Implement the program below, press Run to test, then Submit. The Academy AI runs your code to check accuracy, and scores cleanliness and performance — reach 70% to earn the certificate.

🛠 Capstone Project

Print the prime numbers up to 20

Print every prime number from 2 to 20, separated by spaces: 2 3 5 7 11 13 17 19. A prime has no divisors other than 1 and itself.

Requirements

  • Loop over the candidates 2 to 20
  • For each, test divisibility with the % operator
  • Print only the primes, separated by spaces
  • Use cout for output

When you submit, the Academy AI evaluates your code on accuracy (50%), code cleanliness (25%) and performance (25%). Score 70%+ to earn your certificate.

CPP · your solution

            

🎓 Certificate of Completion

🔒 Pass the project evaluation above (70%+) to unlock your downloadable certificate.