NAME
App::MathImage::NumSeq::Emirps -- primes backwards and forwards
SYNOPSIS
use App::MathImage::NumSeq::Emirps;
my $seq = App::MathImage::NumSeq::Emirps->new;
my ($i, $value) = $seq->next;
DESCRIPTION
The "emirps", being numbers which are primes backwards and forwards. For example 157 is an emirp because both 157 and its reverse 751 are primes. Prime palindromes are excluded. The default base is decimal, or the radix
parameter can select another base.
FUNCTIONS
$seq = App::MathImage::NumSeq::Emirps->new (key=>value,...)
-
Create and return a new sequence object.
$bool = $seq->pred($value)
-
Return true if
$value
is an emirp, meaning it and its digit reversal are both primes.