โ† Infosys questions
CodingReported in a candidate post, Sep 2019

Print prime numbers alternatively

Filed under Infosys

Given an integer N, write a program to generate prime numbers up to N and print them in an alternating fashion (skipping every alternate prime number).

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.