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

Uploaded Python 3

File details

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

File metadata

  • Download URL: grellgond-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 5cea25b4b52148cea97e7b7ac2ae031e2d318aec12d7ce1ada5f72525816f1d1
MD5 f56216a41e812296f900b3376e585d56
BLAKE2b-256 11deda84a6f5271b09f3fb17486ad1058533f8a7bc33153cb9ec79d4b8bccf9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: grellgond-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 00c4ce2e563cdeac2dcc585b4678af62d4073c221b20a78ddb35688910eb151e
MD5 39d017c8fef78e11902090fa6961e216
BLAKE2b-256 687ea244982e2e7f6e0cc027b62c23cc46bb942f171d948a6cf2a96f8c1eb861

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