summaryrefslogtreecommitdiff
path: root/perl/f.pl
diff options
context:
space:
mode:
Diffstat (limited to 'perl/f.pl')
-rw-r--r--perl/f.pl24
1 files changed, 5 insertions, 19 deletions
diff --git a/perl/f.pl b/perl/f.pl
index a255931864..23f5edea54 100644
--- a/perl/f.pl
+++ b/perl/f.pl
@@ -4,22 +4,8 @@ use ExtUtils::testlib;
use SSLeay;
-$data=<>;
-
-#$b=SSLeay::BN::hex2bn($a);
-#$data=$b->bn2bin;
-
-#substr($data,0,8)="";
-#print $data;
-
-$md=SSLeay::MD::new("md5");
-$md->init();
-$md->update("test");
-$key=$md->final();
-
-$rc4=SSLeay::Cipher::new("rc4");
-$rc4->init($key,"",1);
-$out=$rc4->cipher($data);
-
-print $out;
-
+for (7 .. 7926)
+ {
+ my $num = SSLeay::BN::dec2bn($_);
+ print "$_ is ".($num->is_prime ? 'prime' : 'composite'), "\n";
+ }