in reply to Linux file handle not working
Hi,
Works for me with Math::Prime::Util v.073 on MacOS with Perl 5.30.1 and on Ubuntu with Perl 5.28.1 :
$ echo 147416345806550029415781910597841 > input.txt
$ perl -Mstrict -Mntheory=:all -wnE 'chomp; say is_prime($_);' input.t +xt 1
$ perl -Mstrict -Mntheory=:all -wnE 'chomp; say length($_);' input.txt 33
Hope this helps!
|
|---|