Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

LittleChildPaclet

Guides

  • Assumptions and Domains
  • Linguistic Data
  • Number Digits
  • Prime Numbers
  • Start Here Wolfram Challenge Functions
  • String Patterns
  • Wolfram Challenges Algorithms
  • Wolfram Challenges Computational Knowledge
  • Wolfram Challenges Geography
  • Wolfram Challenges Mathematics
  • Wolfram Challenges Words and Linguistics
  • Working with Sequences

Symbols

  • AliquotSequence
  • AlmostPalindrome
  • Anagrams
  • AntipodalCity
  • AntipodeAboveSeaLevelQ
  • BabbageSquares
  • BalancedParentheses
  • BalancedTernary
  • ButterflyString
  • CaesarDecrypt
  • CatalanUnrank
  • Coins
  • CompleteDictionary
  • DigitalRoot
  • FizzBuzz
  • IntegerPalindromeQ
  • MaxRomanLength
  • MaxRomanNumeralValue
  • NonNegativeIntegerQ
  • NumberTriangle
  • OddBeforeEven
  • PairsAddToHundred
  • PositiveIntegerQ
  • RepeatandEndingPrimes
  • SameStartEndWords
  • SayHello
  • SquareSum
  • StringPatternQ
  • ThreeFive
  • ToMorseCode
  • TwoAndThreePointers
  • WordListLookup
PeterBurbery`LittleChildPaclet`
FizzBuzz
​
FizzBuzz
[n]
replaces multiples of 3 with "fizz", multiples of 5 with "buzz", multiples of both 3 and 5 with "fizzbuzz" and leaves other numbers fixed in the list from 1 to
n
​
Details and Options

Examples  
(2)
Basic Examples  
(1)
The function returns a list of the integers from 1 to n, with multiples of 3 replaced by "fizz", multiples of 5 replaced by "buzz" and multiples of both 3 and 5 replaced by "fizzbuzz".
In[1]:=
FizzBuzz
[20]
Out[1]=
{1,2,fizz,4,buzz,fizz,7,8,fizz,buzz,11,fizz,13,14,fizzbuzz,16,17,fizz,19,buzz}
All instances of "fizz", "buzz" and "fizzbuzz" should be returned as strings and all other elements should be integers:
In[2]:=
FizzBuzz
[10]//InputForm
Out[2]//InputForm=
{1, 2, fizz, 4, buzz, fizz, 7, 8, fizz, buzz}
In[3]:=
Head/@%
Out[3]=
{Integer,Integer,String,Integer,String,String,Integer,Integer,String,String}
Scope  
(1)

SeeAlso
"XXXX"
RelatedGuides
▪
Start Here Wolfram Challenge Functions
RelatedLinks
▪
Wolfram Challenges Fizz Buzz »
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com