Skip to main content

Official library for ℷ (The Grellgond mathematical constant)

Project description

The Grellgond Constant (ℷ)

The Grellgond constant (symbol: ℷ, Gimel) is a mathematical constant defined as the decimal concatenation of the sequence of strictly increasing maximal prime gaps.

Mathematical Definition

Let $p_n$ denote the $n$-th prime number. A maximal prime gap $g_k$ is defined as a gap between consecutive primes that is strictly greater than all preceding prime gaps.

The sequence of maximal prime gaps $G$ begins: $G = (1, 2, 4, 6, 8, 14, 18, 20, 22, 34, ...)$ (OEIS A005250)

The Grellgond constant ℷ is defined as the concatenation of the base-10 digits of the sequence $G$, prefixed by $0.$: $$ ℷ = 0.12468141820223436... $$

Installation

You can install the official calculation library via pip:

pip install grellgond

Usage

In Python

from grellgond import gimel, GrellgondConstant

# Print the constant (pre-calculated approximation)
print(gimel)
# Output: ℷ (Grellgond Constant) ≈ 0.12468141820223436

# Dynamically calculate digits up to a prime limit
exact_digits = gimel.calculate_digits(prime_limit=1000000)
print(exact_digits)

Command Line Interface (CLI)

After installing, you can calculate the constant directly from your terminal:

grellgond --limit 100000

Authors

Created and formalized by Simon and Villiam.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grellgond-0.1.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grellgond-0.1.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file grellgond-0.1.1.tar.gz.

File metadata

  • Download URL: grellgond-0.1.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for grellgond-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e8662e22315b06d1435e9827a34aee14084f4eda37f6fb1b2886f8db7d1a53d5
MD5 b6f9405d2093845cb1b5325c720e338f
BLAKE2b-256 50a97870b6518b8b404ff1cad6d5c59c66720288564c317cb8ec9293625b3682

See more details on using hashes here.

File details

Details for the file grellgond-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: grellgond-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for grellgond-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad7bda5863722c193cdb09c9251133c222307cd6930f766b88587ba6a180635c
MD5 95ef096dae479befc8f7a6de9d64f7c3
BLAKE2b-256 bbcd33b8bd8247b80b0051fd5027596f58fb3474c7fa7290bd9eb2a89a6b0fa1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page