Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/Cobol/verschiedene-Autoren/Goedel/     Datei vom 19.4.2008 mit Größe 823 B image not shown  

Quellcode-Bibliothek 3-nth primefactor.cob   Sprache: Cobol

 
       identification division.
       program-id. nthprimefactor.
      * Kurt Gödel, 1931
      * "On formally undecidable propositions
      *  of principa mathematica"
       author"JD".
       date-written. 11.8.2007.
       date-compiled.
       data division.
       working-storage section.
       77 q pic 9(4).
       linkage section.
       77 x   pic 9(4).
       77 y   pic 9(4).
       77 r   pic 9(4).
       procedure division using x y 
                          returning r.
      * computes x | y 
         move 0 to r
         move 1 to q.
      * invariant q < y   
         perform until q >= y
           if function prime(q)
           and function divisible(q,y) then
             move q to r
         end-perform.
      *  r = x | y
        end-program nthprimefactor.

Messung V0.5
C=91 H=96 G=93

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.12Bemerkung:  (vorverarbeitet)  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.