Skip to content

dndydon/PrimeFactorization

Repository files navigation

PrimeFactorization Package

Description of this package.

This package provides public functions and Int extensions for Prime Factorization & All Factorization of Integers.

Last Updated: 2025.08.29

This package is NOT ready for usage in any code that matters. Large areas under construction.

  1. Public Extensions on Integer
  • .primeFactors: [Int]
  • .isPrime: Bool
  • .largestPrime: Int
  • .smallestPrime: Int
  1. Global Functions:
  • primeNumbersUpTo(_ integer: Int) -> [Int]
  • allFactors(of n: Int) -> [Int]
  • primeNumbers(from: Int = 2, through integer: Int) -> [Int]

How to Use

Add this as a Swift Package. See Tests for usage examples.

License

MIT License. Copyright (c) 2024, 2025 Don Sleeter

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages