Skip to main content
Rename function
Source Link
user
  • 387
  • 2
  • 21
  • 68

Haskell, 5151 49 bytes

Port of my Scala answer

f b s=findIndexb#s=findIndex(\x->x`mod`256<1(<1).(`mod`256))$scanl(*)1[b,b+s..]

Try it online!Try it online!

Port of my Scala answer

Haskell, 51 bytes

Port of my Scala answer

f b s=findIndex(\x->x`mod`256<1)$scanl(*)1[b,b+s..]

Try it online!

Haskell, 51 49 bytes

b#s=findIndex((<1).(`mod`256))$scanl(*)1[b,b+s..]

Try it online!

Port of my Scala answer

Source Link
user
  • 387
  • 2
  • 21
  • 68

Haskell, 51 bytes

Port of my Scala answer

f b s=findIndex(\x->x`mod`256<1)$scanl(*)1[b,b+s..]

Try it online!