Goldbach Conjecture
|
03-15-2015, 04:45 PM
(This post was last modified: 03-19-2015 10:27 AM by DrD.)
Post: #1
|
|||
|
|||
Goldbach Conjecture
Here's a short program to display both the number of Goldbach partitions, and a list containing them:
For additional "fun" points, can you graph the number of resulting partitions vs. an even number (greater than 4) that produces a composition of twin prime summands? Code: |
|||
03-16-2015, 01:10 PM
Post: #2
|
|||
|
|||
RE: former rainy day
I did not know about Goldbachs conjecture. Thanks for sharing the idea. This is DrDs frame with some changes. Have not found out yet how to plot with the prime so this has to wait. [/quote]
Code:
|
|||
03-18-2015, 04:07 PM
Post: #3
|
|||
|
|||
RE: Goldbach Conjecture
Thanks for your ideas, Theresa. I had to edit my opening post, as something went crazy with the text there.
I've also included a different approach, of many I'm sure, that builds the Goldbach composition and partitions. Graphing the composition of twin prime summands vs. an even number (greater than 4) used to generate them, should result in the famous Goldbach's Comet plot. I struggled with the makelist() command, using an IFTE() construct, but I got stuck on the "else" clause, thinking I wanted to add any twin primes, to the list, but nothing otherwise. No success there. -Dale- |
|||
03-22-2015, 10:32 AM
(This post was last modified: 03-22-2015 02:32 PM by DrD.)
Post: #4
|
|||
|
|||
RE: Goldbach Conjecture
The code below is an attempt to plot the Goldbach "Comet," which is a plot of the number of twin prime summands, for each positive even integer, (up to a users specified number, and within calculator limitations). The plotted cometary tail gets more interesting for large numbers, (like 500), taking a correspondingly longer time to present, naturally.
I'm sure there are better ways to produce this plot, but readers may find interesting tidbits in the programming details useful for your own future projects, which is my primary purpose in sharing this program. I found the subject matter interesting, and fun, getting built to this point. Perhaps you will, too. Seems to run ok on r6975 release firmware. If it locks up the calc, try: On + Symb, and re-run the program. The virtual calc does better. -Dale- Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)