Skip to content

Commit

Permalink
Added HINTS.md file for nth prime exercise. Issue exercism#209
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbradnan committed Mar 15, 2017
1 parent 77d2c35 commit a2e484c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions exercises/nth-prime/HINTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Hints

For this exercise the following C# feature comes in handy:
Enumerables are evaluated lazily. They allow you to work with an infinite sequence of values.
See [this article](https://blogs.msdn.microsoft.com/pedram/2007/06/02/lazy-evaluation-in-c/).

Note: to help speedup calculation, you should not check numbers which you know beforehand will never be prime. For more information, see the [Sieve of Eratosthenes](https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes).

0 comments on commit a2e484c

Please sign in to comment.