DEV Community

Discussion on: Project Euler #1 - Multiples of 3 and 5

Collapse
 
nektro profile image
Meghan (she/her) • Edited
new Uint16Array(1000)
.map((v,i) => i)
.filter((v) => v % 3 == 0 || v % 5 === 0)
.reduce((ac,cv) => ac + cv)

// 233168