# tagged [primes]

#### How TDD works when there can be millions of test cases for a production functionality?

How TDD works when there can be millions of test cases for a production functionality? In TDD, you pick a test case and implement that test case then you write enough production code so that the test ...

#### Most elegant way to generate prime numbers

Most elegant way to generate prime numbers What is the most elegant way to implement this function: This function generates the first `n` primes (edit: where `n>1`), so `generatePrimes(5)` will return...