Common divisors of two numbers.
Sample solution showing elapsed time in different algorithms to find common divisors of two given numbers.
- Install .NET Core 1.1
- Restore the packages (required once). In the solution folder, where Divisors.sln is, folder execute the followin command:
dotnet restore
- In the project folder, where the Divisors.csproj is, execute the following command:
dotnet build -c release
- Running using the project file. In the project folder, where the Divisors.csproj is, execute the following command:
dotnet run input.txt
- Running using the binary. Execute the following command with the binary file:
dotnet Divisors.dll input.txt
- Executing unit tests. In the unit tests project folder, where the UnitTests.csproj is, execute the following
dotnet test
ProgressConsole is built based on the following open source code: