954,480 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Prime Numbers

:cry:
i'm so confused right now,
can any one help with this?

defining a functoin

bool prime (int n)


which prints 10000 prime numbers

RITZY_G
Newbie Poster
10 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

try your favourite search engine.
wikipedia also has an excellent article on prime numbers complete with explanations of the most popular algorithms.
None are particularly difficult to implement and I'm pretty sure your teacher wants you to do your own homework rather than submit something written by someone else.
You're there to learn something after all.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You