Connecting Tech Pros Worldwide Forums | Help | Site Map

how to print prime numbers between 1 to 100

Newbie
 
Join Date: Sep 2007
Posts: 1
#1: Sep 28 '07
how to print prime numbers between 1 to 100

JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: Sep 28 '07

re: how to print prime numbers between 1 to 100


Quote:

Originally Posted by khusuray

how to print prime numbers between 1 to 100

Well, put a '1' to the left of you and put a '100' to the right of you and start printing
prime numbers; easy enough.

kind regards,

Jos ;-)
Savage's Avatar
Expert
 
Join Date: Feb 2007
Posts: 1,737
#3: Sep 28 '07

re: how to print prime numbers between 1 to 100


Quote:

Originally Posted by khusuray

how to print prime numbers between 1 to 100

This is done on this site about 2,500 times.

One quarter of all threads in C++ is about this problem.

Please just search this site and an answer is guaranteed.

PS:It's recommended that you read our guidelines.

Savage
Reply