1Math::NumSeq::Emirps(3)User Contributed Perl DocumentatioMnath::NumSeq::Emirps(3)
2
3
4

NAME

6       Math::NumSeq::Emirps -- primes backwards and forwards
7

SYNOPSIS

9        use Math::NumSeq::Emirps;
10        my $seq = Math::NumSeq::Emirps->new;
11        my ($i, $value) = $seq->next;
12

DESCRIPTION

14       The "emirps", being numbers which are primes backwards and forwards.
15       For example 157 is an emirp because both 157 and its reverse 751 are
16       primes.  Prime palindromes are excluded.
17
18       The default base is decimal, or the "radix" parameter can select
19       another base.
20

FUNCTIONS

22       See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
23       classes.
24
25       "$seq = Math::NumSeq::Emirps->new ()"
26       "$seq = Math::NumSeq::Emirps->new (radix => 16)"
27           Create and return a new sequence object.
28
29       "$bool = $seq->pred($value)"
30           Return true if $value is an emirp, meaning it and its digit
31           reversal (in the "radix") are both primes.
32

SEE ALSO

34       Math::NumSeq, Math::NumSeq::Primes
35

HOME PAGE

37       <http://user42.tuxfamily.org/math-numseq/index.html>
38

LICENSE

40       Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2019, 2020 Kevin Ryde
41
42       Math-NumSeq is free software; you can redistribute it and/or modify it
43       under the terms of the GNU General Public License as published by the
44       Free Software Foundation; either version 3, or (at your option) any
45       later version.
46
47       Math-NumSeq is distributed in the hope that it will be useful, but
48       WITHOUT ANY WARRANTY; without even the implied warranty of
49       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
50       General Public License for more details.
51
52       You should have received a copy of the GNU General Public License along
53       with Math-NumSeq.  If not, see <http://www.gnu.org/licenses/>.
54
55
56
57perl v5.36.0                      2022-07-22           Math::NumSeq::Emirps(3)
Impressum