ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2021 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Problems.P31

Description

Part of Ninety-Nine Haskell Problems. Some solutions are in Solutions.P31.

Synopsis

Documentation

isPrime :: Integral a => a -> Bool Source #

Determine whether a given integer number is prime.

Examples

>>> isPrime 7
True
>>> isPrime 15
False