Skip to content

PISMATH/otis-prime-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Otis Primes Finder

This repository contains tools for finding Otis primes, which are primes of the form (2^k - 3).

Compilation

Step 1: Compile find_mods.c

gcc find_mods.c -o find_mods

Step 2: Install GMP

Ensure you have the GMP library installed on your system. You can install it using:

  • Ubuntu/Debian:
    sudo apt-get install libgmp-dev
  • macOS (with Homebrew):
    brew install gmp
  • Windows: Download and install GMP from the official GMP website.

Step 3: Compile find_primes.c

gcc find_primes.c -o find_primes -lgmp

Running the Program

Step 1: Run find_mods

./find_mods 1000

You can change the number 1000 to adjust the optimization level.

Step 2: Run find_primes

./find_primes 1000

You can change the number 1000 to find more Otis primes.

Note, the code is mostly black magic, I do not know how it works, but it does.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published