[go: up one dir, main page]

Skip to content

A basic attempt at an optimized prime factorization tool

License

Notifications You must be signed in to change notification settings

EnKrypt/Primrose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Primrose

License

A basic attempt at an optimized prime factorization tool.

Details

Just something I thought I'd try my hand at after reading up on RSA, Shor's algorithm, etc.

The factorization algorithm is my own, using a lower_limit and an upper_limit to reduce the number of iterations required to narrow down a prime factor.

This also means that there is probably scope for a lot more further optimizations.

Usage

Compile yourself or download the latest release.

$ primrose [number]

Sample result

TODO

My competence with C++ is questionable, so there are a few things that can be improved.

  • Replace long long with a proper datatype that can handle bigger integers
  • Attempt to further optimize isPrime algorithm
  • Attempt to further optimize factorize algorithm

About

A basic attempt at an optimized prime factorization tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages