Skip to content

C++ library focused on prime numbers and number theory.

License

Notifications You must be signed in to change notification settings

Kobley/primelib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

primelib

C++ library focused on prime numbers and number theory.

Warning

I WILL BE UPDATING SOON, AS OF NOW EVERYTHING HERE IS PRACTICALLY TESTING AND DISCOVERY!

usage

#include <iostream>
#include "primelib.h"

int main() {
  primelib* pl = new primelib(); //initialize library.
  
  uint64_t n = 100000000ULL //100m, small test.
  pl->atkins(n); //populate set with primes. using sieve of atkins.

  //output primes
  for (uint64_t prime : pl->oprimes) {
    std::cout << prime << std::endl;
  }

  return 0;
}

showcase

bruns_constant

this project is licensed with the GNU GPLv3 license.

below is a summary.

The GNU General Public License version 3 (GPLv3) is a free software license designed to ensure that software remains free and open for all users. It allows anyone to use, study, modify, and distribute the software, provided that any distributed versions, including modified ones, are also licensed under GPLv3, ensuring that derivative works remain free. The license includes protections against patent claims and prohibits the use of hardware restrictions to prevent users from running modified versions of the software. This strong copyleft license ensures that the freedoms granted by the original software are preserved in all copies and derivative works.

About

C++ library focused on prime numbers and number theory.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages