Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number.
Example:
Input : n =10
Output : 2 3 5 7
Input : n = 20
Output: 2 3 5 7 11 13 17 19
#placements #interviews #coding #2021 #2022 #2023 #graduates
Important Coding Questions for Placements / Interview
#Amazon #Microsoft #TCS #Wipro #Infosys #Cisco #Cognizant #CapGemini #Paypal #IBM #Informatica #Zoho #Accenture and more
Do follow me on instagram :
Instagram: / __dwink_
And GitHub:
GitHub: https://github.com/dwinkwink123
Let's Learn With Fun ;)