Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

4 of 5
It will actually be on 2.1.9
The Thonnu
  • 18.7k
  • 3
  • 19
  • 76

Thunno 2 N, 11 bytes

ɦık+Ḋkg×ばつJn|

I'll add an ATO link when Thunno 2 gets added to ATO.

Add a trailing £ if you want it flagless.

Thunno 2, (削除) 18 (削除ここまで) 17 bytes

ɦı35d×ばつJn|£

No questionable constants.

Explanation

ɦık+Ḋkg×ばつJn| # Full program
ɦ # Push 100
 ı # Map over [1..100]:
 k+ # Push [3, 5]
 Ḋ # Divisible by [3, 5] (vectorises)
 kg # Push ["Fizz", "Buzz"]
 ×ばつ # Multiply element-wise
 J # Join by nothing
 n| # Logical OR with the number
 # N flag joins by newlines
 # Implicit output
ɦı35d×ばつJn|£ # Full program
ɦ # Push 100
 ı # Map over [1..100]:
 35d # Push [3, 5]
 Ḋ # Divisible by [3, 5] (vectorises)
 ʋ4ȥæÞ # Push compressed string "FizzBuzz"
 1⁄2 # Split in half to get ["Fizz", "Buzz"]
 ×ばつ # Multiply element-wise
 J # Join by nothing
 n| # Logical OR with the number
 £ # Print the result
The Thonnu
  • 18.7k
  • 3
  • 19
  • 76

AltStyle によって変換されたページ (->オリジナル) /