rsha256/shortest-fizzbuzz

Contains shortest solutions to fizzbuzz in various programming languages

17

stars

125

commits

Swift

primary language

Nov 6, 2025

updated

fizzbuzz
hacktober
hacktoberfest
hacktoberfest2020
open-source

README

shortest-fizzbuzz

Contains shortest solutions to fizzbuzz in various programming languages


Rules:

"Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”." To learn more and see clean versions, see: https://wiki.c2.com/?FizzBuzzTest


Languages:

Contributing:

  1. Alphabetically add your addition here to README.md in the format [<language name>](<file-name>), <number-of-bytes> bytes. GitHub tells you the number of bytes for any file.
  2. Add a file to the root of the repo in the form of: <language-name>.<file-extension> that satisfies the rules above.

Notes:

Try to write a detailed commit message.

If possible make sure you end your file with a newline at the end and are using LF as opposed to CRLF Line sequences.

Feel free to improve on existing solutions if you can do better :)

Contributors

(top 30 of 35)

rsha256

64 commits

GGolfz

9 commits

ChrisLovering

6 commits

cwchiong

4 commits

rsha256/shortest-fizzbuzz

Contains shortest solutions to fizzbuzz in various programming languages

17

stars

125

commits

Swift

primary language

Nov 6, 2025

updated

fizzbuzz
hacktober
hacktoberfest
hacktoberfest2020
open-source

README

shortest-fizzbuzz

Contains shortest solutions to fizzbuzz in various programming languages


Rules:

"Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”." To learn more and see clean versions, see: https://wiki.c2.com/?FizzBuzzTest


Languages:

Contributing:

  1. Alphabetically add your addition here to README.md in the format [<language name>](<file-name>), <number-of-bytes> bytes. GitHub tells you the number of bytes for any file.
  2. Add a file to the root of the repo in the form of: <language-name>.<file-extension> that satisfies the rules above.

Notes:

Try to write a detailed commit message.

If possible make sure you end your file with a newline at the end and are using LF as opposed to CRLF Line sequences.

Feel free to improve on existing solutions if you can do better :)

See what people are saying

Contributors

(top 30 of 35)

rsha256

64 commits

GGolfz

9 commits

ChrisLovering

6 commits

cwchiong

4 commits

Languages

Swift

16.7%

Scheme

15.1%

Elm

10.4%

Common Lisp

8.7%

C++

8.1%

Go

4.7%

Dart

4.3%

Python

4.3%

Rust

4.0%

Haskell

3.9%

R

3.8%

Java

3.7%

C

3.3%

Ruby

2.4%

PHP

2.4%

JavaScript

2.3%

Raku

1.8%