Computer Science Canada Goldbach conjecture (Python 3) |
Author: | ylcc23 [ Wed May 11, 2016 9:26 pm ] | ||
Post subject: | Goldbach conjecture (Python 3) | ||
Pretty self explanatory. I'm looking to program Goldbach's Conjecture in python but I need a bit of help. I have a fair amount of the code written already but I need a bit of help with my testGoldbach function.
|
Author: | Dreadnought [ Fri May 13, 2016 9:37 pm ] |
Post subject: | Re: Goldbach conjecture (Python 3) |
What is giving you trouble? Are you unsure of how to check if Goldbach's conjecture holds for a number, or is it something more specific? For the former, think about how you might check it with pen and paper. Say I give you the number 124, how do you check if it is the sum of two odd primes? (seriously, grab a piece of paper and try it) Try to figure out how you can use your approach to check other numbers. Then try to implement it. |