Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  2-prime.cob   Sprache: Cobol

 

       identification division.
       program-id. prime.
      *  aus Gödel, on formally undecidable propositions 
       author. "JD".
       date-written. 11.8.2007.
       date-compiled.
       data division.
       linkage section.
       77 x   pic 9(4).
       77 z   pic 9(4).
       procedure division using x returning z.
      * computes prime(x) 
         move 0 to z
      * invariant z < x   
         perform until z >= x
           if function divisible(z, x) then
             stop run
           else
             add 1 to z
         end-perform.
      *  r = x | y
          if z>0 then move 1 to z
        end-program prime.

Messung
CHZG
949810097

¤ Dauer der Verarbeitung: 0.11 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,835
#Domains=906,746