From 93495ef6dbc755f795c5e6b7dae82d034091c502 Mon Sep 17 00:00:00 2001 From: gikf <60067306+gikf@users.noreply.github.com> Date: Tue, 9 Mar 2021 07:18:12 +0100 Subject: [PATCH] fix(learn): correct tests description (#41280) Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> --- .../rosetta-code/factors-of-a-mersenne-number.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/factors-of-a-mersenne-number.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/factors-of-a-mersenne-number.md index a6e47143c6..273062a0cf 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/factors-of-a-mersenne-number.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/factors-of-a-mersenne-number.md @@ -54,7 +54,7 @@ As in other trial division algorithms, the algorithm stops when `2kP+1 > sqrt(N) # --instructions-- -Using the above method find a factor of 2929-1 (aka M929) +Using the above method find a factor of 2p-1. # --hints-- @@ -70,19 +70,19 @@ assert(typeof check_mersenne === 'function'); assert(typeof check_mersenne(3) == 'string'); ``` -`check_mersenne(3)` should return "M3 = 2^3-1 is prime". +`check_mersenne(3)` should return the string `M3 = 2^3-1 is prime`. ```js assert.equal(check_mersenne(3), 'M3 = 2^3-1 is prime'); ``` -`check_mersenne(23)` should return "M23 = 2^23-1 is composite with factor 47". +`check_mersenne(23)` should return the string `M23 = 2^23-1 is composite with factor 47`. ```js assert.equal(check_mersenne(23), 'M23 = 2^23-1 is composite with factor 47'); ``` -`check_mersenne(929)` should return "M929 = 2^929-1 is composite with factor 13007 +`check_mersenne(929)` should return the string `M929 = 2^929-1 is composite with factor 13007`. ```js assert.equal(