Trait malachite_base::num::basic::traits::PrimeConstant

source ·
pub trait PrimeConstant {
    const PRIME_CONSTANT: Self;
}
Expand description

Provides the prime constant, whose $n$th bit (starting from $n=1$) is true if and only if $n$ is prime.

Required Associated Constants§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PrimeConstant for f32

The prime constant.

source§

const PRIME_CONSTANT: f32 = 0.414682508f32

source§

impl PrimeConstant for f64

The prime constant.

source§

const PRIME_CONSTANT: f64 = 0.41468250985111166f64

Implementors§