Subject: | examples don't work, Math::Prime::Util doesn't work, errors calling functions |
Date: | Tue, 13 Aug 2013 15:33:50 -0700 |
To: | bug-Math-Prime-Util [...] rt.cpan.org |
From: | Renewal Computer Services <jimm [...] renewalcomputerservices.com> |
Math::Prime::Util v0.3.1
perl 5.16.3 multithreaded, strawberry perl x64 stable
executing the attached code
tp.pl 10000 500
this line gives an error but should not.
my $aref = primes($lower_bound, $upper_bound); #v0.3.1 this gives
error Undefined subroutine &main::primes called at
D:\prj\twin-primes\tp.pl line 67.
my $aref = Math::Prime::Util->primes($lower_bound, $upper_bound);
#v0.3.1 this gives error too many parameters to primes at
D:\prj\twin-primes\tp.pl line 68.
my $aref = Math::Prime::Util::primes($lower_bound, $upper_bound);
#v0.3.1 this gives no error but returns empty list for 9500,10500
the latter simply prints
--------------------
center=10000
offset=500
lower bound=9500
upper bound=10502
min difference=
max difference=
count=0
--------------------
which is invalid.
Math::Prime::Util v0.3.1 this gives error Undefined subroutine
&main::primes called at D:\prj\twin-primes\tp.pl line 67. I got this
usage from the example for primes() from the CPAN documentation.
I am using bigint.
nothing I try works.
--
Renewal Computer Services <http://RenewalComputerServices.com>
Jim Michaels, Owner
1303 NE 87th Ave
<http://www.mapquest.com/maps/1303+NE+87th+Ave+Vancouver+WA+98664-1959/>
(87th Ave & 13th St),
Vancouver, WA, 98664-1959 USA, 1-360-521-2060 Cell 1-10pm
Serving Vancouver, WA
DIY Computer Repair Info: Jesusnjim.com <http://Jesusnjim.com>
jimm@RenewalComputerServices.com <mailto:jimm@RenewalComputerServices.com>
jmichae3@yahoo.com <mailto:jmichae3@yahoo.com>
Message body is not shown because sender requested not to inline it.