Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,705 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,390 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
post 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

Go to the top of the page

capty99
post 14 Sep, 2008 - 09:23 PM
Post #2


the real kya

Group Icon
Joined: 26 Apr, 2001
Posts: 9,137



Thanked 15 times

Dream Kudos: 550
My Contributions


%
User is offlineProfile CardPM

Go to the top of the page

no2pencil
post 14 Sep, 2008 - 09:32 PM
Post #3


My fridge be runnin OH NOEZ!

Group Icon
Joined: 10 May, 2007
Posts: 6,354



Thanked 58 times

Dream Kudos: 2375

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

Go to the top of the page

grimpirate
post 14 Sep, 2008 - 10:06 PM
Post #4


D.I.C Head

Group Icon
Joined: 3 Aug, 2006
Posts: 187



Thanked 5 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

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 08:29AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month