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.
- Host: GitHub
- URL: https://github.com/knutwalker/primefacts
- Owner: knutwalker
- Archived: true
- Created: 2013-04-16T22:33:29.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-16T22:38:25.000Z (about 13 years ago)
- Last Synced: 2025-01-28T23:38:54.818Z (over 1 year ago)
- Language: Scala
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.