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.0.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.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: grellgond-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 b6e4b811f6d362c0aa1c016aa07800bbbd2ed97f6c9561c76aee2f70002190e4
MD5 d3645c0de83affb76f71bb9c18511dc9
BLAKE2b-256 ebd0284e8767a8e20b736eac722118592e48c9adef489b31b41a63e00fb323ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: grellgond-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfb03111110b3f0d312f9215ad15680abc755d0763fc60c6f5e3ad9c6f3a8772
MD5 f1a2d3475d2fdc4a2b356f33a4759fdf
BLAKE2b-256 45d29bdb5b151301b1ea860af8e826d6f156c48ed6a1915475adf10466fb25bd

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