DataMuseum.dk

Presents historical artifacts from the history of:

RC4000/8000/9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC4000/8000/9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦7229ea005⟧ TextFile

    Length: 768 (0x300)
    Types: TextFile
    Names: »abench«

Derivation

└─⟦00964e8f7⟧ Bits:30007478 RC8000 Dump tape fra HCØ.
    └─⟦b2ec5d50f⟧ 
        └─⟦this⟧ »abench« 

TextFile

begin
  integer n,k,l;
  real m;
  comment   INTERFACE AGE's benchmark program to
            'discover' the first 1000 prime numbers;

  write(out,<:Starting:<10>:>);
  for n:= 1 step 1 until 1000 do
  begin
    for k:= 2 step 1 until 500 do
    begin
      m:= n/k;
      l:= m;
      if l=0 then goto l230;
      if l=1 then goto l220;
      if m>l then goto l220;
      if m=l then goto l240;
l220:
    end;
l230:
    write(out,n);
    setposition(out,0,0);
l240:
  end;
  write(out,<:<7><10>Finished.:>)
end
▶EOF◀