Skip to content

Latest commit

 

History

History
23 lines (11 loc) · 789 Bytes

README.md

File metadata and controls

23 lines (11 loc) · 789 Bytes

To run

cd MagicPrimes
dotnet run --configuration Release

Background on the challenge

There are four distinct prime numbers, each in the range 1 - 1000 which, when you multiply all four of them together, produce a certain 12-digit number. When you read this number's digits from left to right, each digit (starting with the second digit) is either the same as, or one more than, the previous digit.

Your mission is to write a C# application to find and output the four prime numbers.

David will donate a couple of bottles of wine as prizes for performance and artistic impression as follows:

Performance: for the application that runs in the shortest time while producing the correct results

Artistic impression: for the most concise or elegant code