openssl/perl/f.pl
1998-12-21 11:00:56 +00:00

12 lines
175 B
Perl

#!/usr/bin/perl
use ExtUtils::testlib;
use SSLeay;
for (7 .. 7926)
{
my $num = SSLeay::BN::dec2bn($_);
print "$_ is ".($num->is_prime ? 'prime' : 'composite'), "\n";
}