This is an experiment to validate the Goldbash conjeture.
Goldbach's conjecture is one of the oldest and best-known unsolved problems in number theory and all of mathematics. It states that every even natural number greater than 2 is the sum of two prime numbers. - Wikipedia
It is very easy to make a conjecture from a number, to find if two primes give their result, but the idea is that from a number we calculate all the pairs that are found until we reach that number and then for each even number, we obtain their prime numbers, and if by adding two of their primes we obtain even number, so we validate that the conjecture is true.
e.g.
From the number 10, we get all its pairs: [2,4,6,8,10] and from each of them we validate the conjecture, for example if 4 = 2+2.
Being able to find the breakout point to see if the conjecture is false... although at the moment I have tested only up to 100000 with all its possible pairs and the result has been validated.
- Add possibility to test using ranges.
Create a incremental query to validate and store all tested scenarios where the tests returned that the conjecture is true, so we can validate the next fragment uppon from that. eg. txt file with all tested scenarios: Table with the range tested.
To be able to run the application make sure you have BunJS
runner installed. BunJs website.
Install deps:
bun install
To run:
bun run start
This project was created using bun init
in bun v0.2.2. Bun is a fast all-in-one JavaScript runtime.