From 0a7b4bd50d7ec244acce6466addfdb539b7c9168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Fri, 26 Apr 2019 15:38:09 +0200 Subject: [PATCH] Update isprime.js --- functions/isprime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/isprime.js b/functions/isprime.js index 67263a0..b43e5bc 100644 --- a/functions/isprime.js +++ b/functions/isprime.js @@ -7,7 +7,7 @@ module.exports = { var upper = Math.sqrt(num); var sieve = new Array(num) .join(',').split(',') // get values for map to work - .map(function(){ return true }); + .map(function(){ return "Prime" }); for (var i = 2; i <= num; i++) { if (sieve[i]) {