Qbasicnews.com

Full Version: Challenge
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
In my program you should see that "6+-1" equals the prime numbers. But i have
Code:
DO
  z = z + 1
  IF z = a THEN prm = prm + 1: prime(prm) = a: EXIT DO
  IF a / z = INT(a / z) THEN EXIT DO
LOOP
To check if it's prime.
Pages: 1 2