Expression
BigInt
Our great sponsors
Expression  BigInt  

0  4  
807  745  
  0.3%  
5.5  2.3  
3 months ago  6 months ago  
Swift  Swift  
MIT License  MIT License 
Stars  the number of stars that a project has on GitHub. Growth  month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Expression
We haven't tracked posts mentioning Expression yet.
Tracking mentions began in Dec 2020.
BigInt

π 2022 Day 11 Solutions π
For part 2, I immediately had the suspicion that using BigInts wasn't going to cut it, and that was quickly confirmed by the CPU usage. I then wasted time with lcm before noticing that all divisors are primes and thus a simple reduce(1, *) was sufficient.

BigInt initialize with bytes
Also FYI there is this package if you donβt want to use a beta implementation. Hope that a BigInt type gets added to the standard lib tho, I ran into this problem just this week!

How to store 18446744073709551616 in an UInt?
Use BigInt here: https://github.com/attaswift/BigInt
What are some alternatives?
swiftpons  ProtocolOriented Number System in Pure Swift
iosMath  Beautiful math equation rendering on iOS and MacOS
Upsurge  Multidimensional Swift math
Surge  Surge has been moved to its own organization on GitHub (@Jounce)
SwiftMath
Arithmosophi  A set of protocols for Arithmetic, Statistics and Logical operations
SigmaSwiftStatistics  A collection of functions for statistical calculation written in Swift.
SwiftMathEagle  A general math framework to make using math easy. Currently supports function solving and optimisation, matrix and vector algebra, complex numbers, big int, big frac, big rational, graphs and general handy extensions and functions.
SwiftSimplify  π₯· Highperformance polyline simplification library  port of simplify.js