/Divisors

Common divisors

Primary LanguageC#MIT LicenseMIT

Divisors

Common divisors of two numbers.

Sample solution showing elapsed time in different algorithms to find common divisors of two given numbers.

Build status Codacy Badge Build Status SonarCloud

How to build

  • 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

How to run

  • 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

How to test

  • Executing unit tests. In the unit tests project folder, where the UnitTests.csproj is, execute the following
dotnet test

Acknowledgements

ProgressConsole is built based on the following open source code:

GitHub Project Repository