My solutions for Project Euler written in Swift
This is part of my ongoing quest to learn more about number theory and the Swift language.
-
clone
project-euler
cd ~/projects git clone [email protected]:matthewh806/project-euler.git
-
Ensure you have the latest [Swift Development Snapshot] (https://swift.org/download/) and follow the [Getting Started guide] (https://swift.org/getting-started/#installing-swift)
-
Building an executable with the follwing command:
swift build
-
The built products can then be found in the
.build
directory. Run the program with the following command:.build/debug/project-euler [n]
Note that [n]
specifies the problem no. you wish to view the output for.