← Accenture questions
CodingEasy

Print All Prime Numbers up to a Given Number

Filed under Accenture

Given an integer n, write a function or program to find and print all prime numbers from 2 up to n inclusive.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Accenture questions

Collected from public candidate posts and coding forums. Updated Nov 2026.