← Infosys questions
CodingEasyReported in a candidate post, Jul 2022

Print all prime numbers within a given range

Filed under Infosys

Given two positive integers low and high, return all prime numbers in the inclusive range [low, high]. A prime number is a natural number greater than 1 that has no positive divisors other than 1 and…

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.