โ† Infosys questions

Pseudo-code for checking prime numbers

Filed under Infosys

Given an integer n, determine whether it is a prime number. A prime number is a natural number strictly greater than 1 that has no positive 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 Infosys questions

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