Mode:
Duration:
1
2
3
4
5
6
7
8
func isPrime(n) {
if n < 2 { return false }
for i in 2..n-1 {
if n % i == 0 { return false }
}
return true
}
print(isPrime(13))Coding works best on desktop or with an external keyboard.
func isPrime(n) {
if n < 2 { return false }
for i in 2..n-1 {
if n % i == 0 { return false }
}
return true
}
print(isPrime(13))Coding works best on desktop or with an external keyboard.
Checks if a number is prime.
func isPrime(n) {
if n < 2 { return false }
for i in 2..n-1 {
if n % i == 0 { return false }
}
return true
}
print(isPrime(13))Falcon is a high-level, multi-paradigm programming language designed for scripting, automation, and rapid application development. It supports procedural, object-oriented, and functional programming paradigms and offers dynamic typing, automatic memory management, and cross-platform support.
Origin & Creator
Falcon was created in the early 2000s by Marc LeBlanc and other contributors, aiming to provide a modern scripting language that blends multiple programming paradigms.
Industrial Note
Falcon is used in embedded scripting, automation, rapid prototyping, and educational contexts. Its multi-paradigm nature makes it suitable for niche scripting tasks where other languages might be too heavy or restrictive.