Question:
need help with prime numbers?
addy
2009-07-28 01:08:30 UTC
question
find all the pairs of prime numbers that add to 36

thankz
Three answers:
gnehs12345
2009-07-28 01:13:25 UTC
5+31

17+19

23+13

7+29
Joseph
2009-07-28 01:25:06 UTC
Better yet - I'll give you an algorithm that you can use on a calculator:

1) Make a list of prime numbers.

2) Subtract the first prime from 36.

3) If the result is also prime, then you have a valid combination.

4) Repeat until you have done all the primes including and up to 17. The primes 19...31 will of course have worked as well since the other half of your primes list will 'fall out' in the end.



If you make a short program that does this in BASIC, you can just reuse that method for as many numbers as you want. Yes, it's a homework solver tool, haha. If you understand enough to write it, then it doesn't really matter. Just don't be "rusty" when taking a quiz!
2009-07-28 01:15:32 UTC
31 +5

29 +7

23+13

19+17


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...