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

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

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

Command Line Interface (CLI)

After installing, calculate the constant directly from your terminal:

grellgond --limit 100000

Authors

Created and formalized by Simon and Viliam.

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.2.tar.gz (2.7 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.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: grellgond-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 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.2.tar.gz
Algorithm Hash digest
SHA256 c0eb56c45383040c6d7c70c7eaa0737d1c56e9e56ffc67fdfbf589efacf214b6
MD5 66a5e8d54bde0e637577395c09027113
BLAKE2b-256 fd417da2c189dd03a68bd37bf70bd18e0fcf78f679031671c6f412497f9c057a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: grellgond-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97c0b2350cca0e7bfd2dd334ae4802ccd70c45599f534326f8b2abf02c1ecc70
MD5 8cf834226df09a106458326b853e5b0d
BLAKE2b-256 7d9d138ee4a345432d327b030c524dfd9a92ebe54d6fb332fda8c7eede317c58

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