Mode:
Duration:
1
2
3
4
5
6
7
8
Function isPrime(n:Int) As Int
If n < 2 Then Return 0
For Local i:Int = 2 To n-1
If n Mod i = 0 Then Return 0
Next
Return 1
End Function
Print isPrime(13)Coding works best on desktop or with an external keyboard.
Function isPrime(n:Int) As Int
If n < 2 Then Return 0
For Local i:Int = 2 To n-1
If n Mod i = 0 Then Return 0
Next
Return 1
End Function
Print isPrime(13)Coding works best on desktop or with an external keyboard.
Checks if a number is prime.
Function isPrime(n:Int) As Int
If n < 2 Then Return 0
For Local i:Int = 2 To n-1
If n Mod i = 0 Then Return 0
Next
Return 1
End Function
Print isPrime(13)BlitzMax is a high-level, procedural programming language designed for game development and multimedia applications. It provides a simple syntax, cross-platform capabilities, and built-in support for graphics, sound, and input handling.
Origin & Creator
Created by Mark Sibly in 2001.
Industrial Note
BlitzMax is mainly used for indie game development, hobbyist projects, and small cross-platform multimedia applications, especially in the early 2000s indie scene.