(Archived) Codewars 8 kyu Wilson Primes JavaScript

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Hi, thanks for the video however it's not working for an example of 114 using your method (Array.from({length: p - 1}, (_, index) => index + 1).reduce((acc, next) => acc * next, 1) + 1) / (p * p) % 1 == 0 I'm getting true instead of false.

It's not working for 114 below
console.log(amIWilson(114)) // false

Please kindly help me out when you see this comment, I greatly appreciate and thanks in advance

effiongbenjamin