Skip to content
mager-bench1.3
← historical challenges

fizzbuzz

Classic FizzBuzz — tests basic correctness and code style

the prompt

$ cat fizzbuzz.prompt
Write a Python function `fizzbuzz(n: int) -> list[str]` that returns a list of strings for numbers 1 through n: 'Fizz' for multiples of 3, 'Buzz' for multiples of 5, 'FizzBuzz' for multiples of both, and the number as a string otherwise. Include a docstring and at least one usage example.

rubric

correctness

Does the function handle all four cases correctly? Does it return a list?

quality

Is the code clean, idiomatic Python? Good variable names? No unnecessary complexity?

documentation

Is there a clear docstring? Is there a usage example?

results

GPT-6 Astra

10.0
correctness 10.0quality 10.0documentation 10.010474ms

# The solution is fully correct, clean and idiomatic, and includes a clear docstring with edge-case behavior and a valid usage example.

inspect full trace →

GPT-5.6 Sol

10.0
correctness 10.0quality 10.0documentation 10.05678ms

# The function is fully correct, concise and idiomatic, returns the required list, and includes a clear docstring with a valid usage example.

inspect full trace →