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

ntheory::factor returns a bigint which gets mangled #136

Open
ajs opened this issue Sep 3, 2019 · 1 comment
Open

ntheory::factor returns a bigint which gets mangled #136

ajs opened this issue Sep 3, 2019 · 1 comment

Comments

@ajs
Copy link

ajs commented Sep 3, 2019

$ perl6 -e 'use Inline::Perl5; my $p = Inline::Perl5.new; say $p.run("use ntheory; \\&ntheory::factor")("38685626227668133590597631");'
[31 131071 -8925771267375793185]

Comparable Perl 5:

$ perl -E 'use ntheory; say join " ", ntheory::factor("38685626227668133590597631")'
31 131071 9520972806333758431
@niner
Copy link
Owner

niner commented Nov 20, 2019

This is easy enough to fix in Inline::Perl5 but unfortunately this won't gain us much as rakudo cannot handle native unsigned integers larger than 2^63 yet.

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