![]() |
| ||
| how do u find prime numbers in an array hlp please |
| ||
| Re: how do u find prime numbers in an array if you search these threads you will find several threads on this topic. |
| ||
| Re: how do u find prime numbers in an array first write a program to catch all the prime numbers in to an array in a given or a chosen range.... and compare the elements of prime numbers with the each element of the array u want... if one of ur array element is equal to a element of prime number array,,that means it's a prime number.... e.g. A[4]={1,5,3,4,17}; //range is 1 to 20 primArray[10]={2,3,5,7,11,13,17,19} now compare array 'A' with the each element of 'primArray'. if u find hard to write a program to catch prime numbers of a given range to an array email me.... |
| ||
| Re: how do u find prime numbers in an array dude we need2 accept the numbers in an array.... so among those nos wi nid 2 find |
| ||
| Re: how do u find prime numbers in an array Speak English please. And once you do that, you can show some effort. http://www.daniweb.com/techtalkforum...cement8-2.html http://www.catb.org/~esr/faqs/smart-questions.html |
| ||
| Re: how do u find prime numbers in an array Quote:
Good luck, LamaBot |
| ||
| Re: how do u find prime numbers in an array I don't know how "u" does it. I do know how I'd do it. |
| ||
| Re: how do u find prime numbers in an array /* This program is for checking a single integer*/ |
| All times are GMT -4. The time now is 3:27 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC