Coder Social home page Coder Social logo

ensj / primes Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 42 KB

A collection of useful number theoretic functions. Contains several primality tests, and the ECM factoring algorithm as well.

C++ 94.37% Makefile 5.63%
number-theory algorithms prime-numbers primality-test factoring-algorithms

primes's People

Contributors

ensj avatar smashalkar avatar

Watchers

 avatar  avatar

primes's Issues

Fib Algorithm needs improvement.

The current fib(n) algorithm generates the nth fibonacci number and just spits that out. Ideally, we'd have it print out 0-nth numbers as an array, and additionally give the nth power of [[0, 1], [1, 1]] (So Pair<array_like, array_like>). We would then have an overloaded version of fib(n) that accepts an array_like as a parameter, so that we can continue off from the nth fib number to the n+mth fib number.

Algorithm to generate pseudoprimes

Integrate fib(n), ECFactor(n, r, tries), and FibProduct to start generating pseudoprimes (and perhaps check to confirm that they are pseudoprime)

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.