Baltor Get started

Library / Code module

is_prime from more-itertools

is_prime

is_prime from more-itertools: Return ``True`` if *n* is prime and ``False`` otherwise. One tested Python function, copied with the code it needs.

Files, names only

  • ATTRIBUTION.md 1.5 KB
  • LICENSE 1.0 KB
  • README.md 1.0 KB
  • UPSTREAM-LICENSE 1.0 KB
  • more_itertools_is_prime.py 2.7 KB
  • test_more_itertools_is_prime.py 451 bytes

Full files in your harness.

What it takes and gives

Function
is_prime
Project
more-itertools
Module
more_itertools_is_prime.py

Details

Kind
Code module
Licence
MIT
Declared effects
runs commands
Source
github.com/more-itertools/more-itertools/more_itertools/recipes.py
Size
6 files, 7.6 KB
Identity
library.supply.function_extracts.4f675f88ff083984a3bef84e.1429ce5f866f1806
Version
1429ce5f866f18069892973d1fbe218a2548a36e602bda67261556c389a8126a

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Where it is shown

Related components

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.