Welcome to Dream.In.Code
Become an Expert!

Join 150,189 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,046 people online right now. Registration is fast and FREE... Join Now!




To find whether the number is prime or not using function

 
Reply to this topicStart new topic

To find whether the number is prime or not using function

sonal.12
14 Sep, 2008 - 08:41 PM
Post #1

New D.I.C Head
*

Joined: 14 Sep, 2008
Posts: 2

I want to find whether the number is prime or not using function
User is offlineProfile CardPM
+Quote Post

capty99
RE: To Find Whether The Number Is Prime Or Not Using Function
14 Sep, 2008 - 09:23 PM
Post #2

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,256



Thanked: 16 times
Dream Kudos: 550
My Contributions
%
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: To Find Whether The Number Is Prime Or Not Using Function
14 Sep, 2008 - 09:32 PM
Post #3

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 7,166



Thanked: 78 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
Lets forget all of the miniscule details here, such as language, setup, syntax, all of that non-important jazz. Lets just talk numbers!
User is offlineProfile CardPM
+Quote Post

grimpirate
RE: To Find Whether The Number Is Prime Or Not Using Function
14 Sep, 2008 - 10:06 PM
Post #4

D.I.C Head
Group Icon

Joined: 3 Aug, 2006
Posts: 227



Thanked: 6 times
Dream Kudos: 375
My Contributions
I suggest the Sieve of Eratosthenes which you can look easily find at wikipedia. For an implementation look here http://www.dreamincode.net/code/snippet2402.htm
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 04:14AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month