NAME
Math::NumSeq::MathImageObstinate -- obstinate numbers, odd integers not of the form prime+2^k
SYNOPSIS
use Math::NumSeq::MathImageObstinate;
my $seq = Math::NumSeq::MathImageObstinate->new;
my ($i, $value) = $seq->next;
DESCRIPTION
The obstinate numbers, being integers which cannot be represented as prime+2^k for some prime and some power-of-2.
1, 3, 127, 149, 251, ...
For example 149 is obstinate because none of 149-1, 149-2, 149-4, ... 149-128 are primes.
FUNCTIONS
$seq = Math::NumSeq::MathImageObstinate->new ()
$seq = Math::NumSeq::MathImageObstinate->new (obstinate_type => $str)
-
Create and return a new sequence object.
$bool = $seq->pred($value)
-
Return true if
$value
is an obstinate, deficient or primitive obstinate per$seq
.This check requires factorizing
$value
and in the current code a hard limit of 2**32 is placed on values to be checked.