Category : Miscellaneous Language Source Code
Archive   : SETLSZIP.ZIP
Filename : PRIME1.STL
Output of file : PRIME1.STL contained in archive : SETLSZIP.ZIP
$ This program prints out a list of prime numbers
$ which includes all primes less than 200
n := 200;
print('Primes less than ',n,' are:');
primes := {}; $ set of primes output so far
p := 2; $ initial value to test
c := 0;
$ Loop to test successive values
loop while p < n do $ loop as long as p less than n
if notexists t in primes | p mod t = 0 then
print(p);
primes with:= p;
c := c + 1;
end if;
p := p + 1;
end loop;
print('Number of primes < 200 = ', c);
end program;
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/