Discuss / JavaScript / homework

homework

Topic source

withindis

#1 Created at ... [Delete] [Delete and Lock User]
       return arr.filter((x)=>(x<2?false:Array.from({length: Math.floor(x**0.5) - 1}, (_, i) => i + 2).every((y)=>(x%y==0?false:true))));

  • 1

Reply