โ† Informatica questions

Prime Numbers Generation up to N

Filed under Informatica

Given an integer n, generate all prime numbers from 1 to n. Explain why checking divisors up to the square root of a number is sufficient.

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

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