Thread: Prime Numbers
View Single Post
  #2  
Old January 5th, 2007, 07:58 PM
topsquark's Avatar
topsquark topsquark is offline
Generous Contributor
 
Join Date: Jan 2006
Location: Angelica, NY
Posts: 7,618
Country:
Thanks: 643
Thanked 2,312 Times in 2,098 Posts
topsquark has a reputation beyond reputetopsquark has a reputation beyond reputetopsquark has a reputation beyond reputetopsquark has a reputation beyond reputetopsquark has a reputation beyond reputetopsquark has a reputation beyond reputetopsquark has a reputation beyond reputetopsquark has a reputation beyond reputetopsquark has a reputation beyond reputetopsquark has a reputation beyond reputetopsquark has a reputation beyond repute
Default

Quote:
Originally Posted by MoneyMaker View Post
Please help me i dont understand how to find out if numbers are prime how do i have to do to find out
Say for example you have the number 139. If it is not prime it's divisible by some number less than \sqrt{139} \approx 12. So start making a list:
\frac{139}{2} \neq \text{Integer}

\frac{139}{3} \neq \text{Integer}

.
.
.

\frac{139}{12} \neq \text{Integer}

139 is not divisible by any of the numbers 2, 3, ..., 12. Thus 139 is prime. (Actually you don't need to divide by all of 2, 3, ..., 12, you may simply divide by all primes less than 12: 2, 3, 5, 7, and 11.)

Try 527. We need to check divisibility by all numbers less than \sqrt{527} \approx 23.

\frac{527}{2} \neq \text{Integer}

\frac{527}{3} \neq \text{Integer}

.
.
.

\frac{527}{17} = 31

Thus 527 = 17 \cdot 31 and thus it is not a prime number.

-Dan
__________________
Got a Physics question? Come on over to
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


"I must not fear. Fear is the mind killer. Fear is the little death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain." - The Litany Against Fear, "Dune" by Frank Herbert
Reply With Quote
The following users thank topsquark for this useful post:
Donate to MHF