From da99033b77be807663872c48f8ac0e325ec6f9a7 Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Sat, 30 Nov 2019 16:33:37 -0600 Subject: [PATCH] fix: sum all primes description (#37750) * fix: sum all primes description * Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-primes.english.md Co-Authored-By: Oliver Eyton-Williams * Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-primes.english.md Co-Authored-By: Oliver Eyton-Williams --- .../sum-all-primes.english.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-primes.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-primes.english.md index 40d4e8a817..8711790a8e 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-primes.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-primes.english.md @@ -8,9 +8,14 @@ forumTopicId: 16085 ## Description
-Sum all the prime numbers up to and including the provided number. -A prime number is defined as a number greater than one and having only two divisors, one and itself. For example, 2 is a prime number because it's only divisible by one and two. -The provided number may not be a prime. + +A prime number is a whole number greater than 1 with exactly two divisors: 1 and +itself. For example, 2 is a prime number because it is only divisible by 1 and 2. In +contrast, 4 is not prime since it is divisible by 1, 2 and 4. + +Rewrite `sumPrimes` so it returns the sum of all prime numbers that are less than or +equal to num. + Remember to use Read-Search-Ask if you get stuck. Try to pair program. Write your own code.