GeeksforGeeks Question · Jul 2025 · Los Angeles

TCS Coding Practice Question | Prime Numbers upto N

Question Details

Given a number N, the task is to find the Prime Numbers from 1 to N using Command Line Arguments.Examples:Input: N = 7Output: 2, 3, 5, 7Input: N = 13Output: 2, 3, 5, 7, 11...

Full Details

🔒

Unlock all Tcs questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a tcs interview for a swe role during the recruiter round reported in 2025.

It covers the following topics: Arrays, Strings, Math .