
Button 1 Label PrimeNumbers
Button PrimeNumbers Color Green
Stop

Label PrimeNumbers
	Variable Numeric n1 = 2
	Variable Numeric n2 = 0
	Variable Numeric n3 = 0
	
	For v1 = 1 To 100
		n2 = 0
		For v2 = 2 To n1 - 1
			n3 = Mod(n1, v2)
			If n3 = 0
				n2 = n2 + 1
			EndIf
		Next
		If n2 = 0
			Print n1 + CRLF
		EndIf
		n1 = n1 + 1
	Next
Return


