← Nvidia questions

Print primes from 2 to N

Filed under Nvidia

Given an integer N, print all prime numbers from 2 to N inclusive. A prime is a number greater than 1 with no divisors other than 1 and itself.

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 Nvidia questions

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