fast-arithmetic-0.4.0.0: Fast functions on integers.

CopyrightCopyright (c) 2018 Vanessa McHale
Safe HaskellNone
LanguageHaskell2010

Numeric.Integer

Description

This module provides a fast primality check.

Synopsis

Documentation

isPrime :: Int -> Bool Source #

\( O(\sqrt(n)) \)