Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Graham's number #258

Open
mihaitodor opened this issue Dec 29, 2022 · 1 comment
Open

Add support for Graham's number #258

mihaitodor opened this issue Dec 29, 2022 · 1 comment

Comments

@mihaitodor
Copy link

Details here: https://en.wikipedia.org/wiki/Graham%27s_number

@Rudxain
Copy link

Rudxain commented Apr 6, 2024

Easy, we just need BigInt support. According to ES, they are (theoretically) unbounded in size, so there's no need to worry about memory, as every browser must comply with the spec.

I've even wrote a function that we can use to test the code. Just call it like so:

import { Graham } from 'https://raw.githubusercontent.com/Rudxain/EsoMath.js/6ab44eae22d4b850e968a4a7a9f4c99d1a5ec9f2/src/lib/hyper.js'
const isEven = require('@samuelmarina/is-even')

isEven(Graham(64n)) //false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants