Coder Social home page Coder Social logo

goldbach-conjeture's Introduction

Validate the Goldbach Conjeture

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.

Our goal

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.

Update

  • Add possibility to test using ranges.

Next steps.

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.

How to use this application

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.

goldbach-conjeture's People

Contributors

ruslanguns avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.