← Mastercard questions
CodingReported in a candidate post, Oct 2025

Print prime numbers in a range

Filed under Mastercard

Given two integers lo and hi, print (or return) all prime numbers in the inclusive range [lo, hi].

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

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