An open API service indexing awesome lists of open source software.

https://github.com/knutwalker/primefacts

This small package allows for generation of prime factors. It is implemented in Scala and uses only functional programming principles.
https://github.com/knutwalker/primefacts

Last synced: 8 months ago
JSON representation

This small package allows for generation of prime factors. It is implemented in Scala and uses only functional programming principles.

Awesome Lists containing this project

README

          

Prime Factors
=============

This small package allows for generation of prime factors.

It is implemented in Scala and uses only functional programming principles.

The prime factors of a positive integer are the prime numbers that divide
that integer exactly, the process if finding these is called
prime factorization.

`primeFactorsLinear` may be used to provide a linear sequence of all prime factors.

`primeFactors` may be used to provide a sequence of tuples of all prime factors
with their correspondent exponent.

See the tests or the Main App for an example of use.