Results 1 to 3 of 3
Thread: Find a prime number
- 11-16-2012, 04:53 PM #1
Member
- Join Date
- Nov 2012
- Posts
- 1
- Rep Power
- 0
- 11-16-2012, 06:40 PM #2
Member
- Join Date
- Nov 2012
- Posts
- 14
- Rep Power
- 0
Re: Find a prime number
Why don't you give it a try, and if you have issues with the implementation then you can come back here and ask more specific questions that we can then answer.
- 11-16-2012, 06:42 PM #3
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,619
- Rep Power
- 5
Re: Find a prime number
How would you do this with a pen and paper? You first need to have an algorithm before you think about data types and static methods...write out how you would do this by hand in a stepwise process - that's your algorithm. Once you have that you will be much better suited to think about how to write code to implement the algorithm.
Similar Threads
-
Prime Number finder
By hoosierfan24 in forum New To JavaReplies: 11Last Post: 02-17-2011, 09:13 AM -
find a prime number
By loja11 in forum Threads and SynchronizationReplies: 4Last Post: 02-17-2011, 08:54 AM -
displaying prime number
By eng_hyzoom in forum New To JavaReplies: 1Last Post: 11-26-2010, 11:21 AM -
Finding nth prime number
By dextr in forum New To JavaReplies: 2Last Post: 04-12-2010, 11:42 PM -
Prime Number - System print all the prime numbers ...
By pinkdreammsss in forum New To JavaReplies: 20Last Post: 04-26-2009, 01:50 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks