Lucia Code Examples
Explore these examples to see Lucia in action. Click on any example to view the code.
Bubble Sort
Implementation of the bubble sort algorithm in Lucia.
Sorting
Factorial (Iterative)
Calculate factorial using an iterative approach.
Mathematics
Factorial (Recursive)
Calculate factorial using recursion.
Mathematics
Fibonacci Sequence
Calculate Fibonacci numbers using Binet's formula.
Mathematics
FizzBuzz
Classic FizzBuzz problem solution.
Algorithm
Prime Number Checker
Check if a number is prime.
Mathematics