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-1.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

grellgond-1.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for grellgond-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3d65b68de90085a13c11d35e0b4ea273957c466c12cea42d8465fc242cee2f1f
MD5 8841ab43a2b8a154d79d006e1856ae13
BLAKE2b-256 c4b5f70ee22996ce342204694017afce4877ba7f84a58844d44a1de758e37629

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for grellgond-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a50d17b08494787cace4af308c7b2d408dfd5420685ac935ced8ab687140a59
MD5 dc78daaaa7f3f99fc541ece27b803a66
BLAKE2b-256 0a8a43af8dc3cc09d8bf62900ed132327c2d5ce239889f0f76297a78dca77f87

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