ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
189 B

  1. 20 PRINT "LIMIT";
  2. 30 INPUT L
  3. 40 FOR N = 3 TO L
  4. 50 FOR D = 2 TO (N-1)
  5. 60 IF N/D=INT(N/D) THEN GOTO 100
  6. 70 NEXT D
  7. 80 PRINT N;
  8. 90 GOTO 110
  9. 100 PRINT ".";
  10. 110 NEXT N
  11. 120 END