IdentificationDivision. Program-Id. divisions. Author. "Leutbecher". * ".. Zahlentheorie S. 67" DataDivision. Working-StorageSection. 77 a pic S9(8). 77 b pic S9(8). 77 c pic S9(8). LinkageSection. 77 m pic S9(8). 77 n pic S9(8). 77 s pic S9(8). ProcedureDivisionusing n m s. * m Z, n N mit n>1 und n == 1(mod 2) compute a = function mod(m,n) move n to b move1to s if a=0thenmove0to s end-if performuntil a <= 1 performuntilfunction mod(a, 4)not=0 divide4into a end-perform iffunction mod(a, 2)=0then divide2into a iffunction mod(a, 8)=3or =5then move -s to s end-if move b to c move a to b move c to a iffunction mod(a, 4)=3andfunction mod(b, 4)=3then move -s to s end-if compute a=function mod(a,b) if a=0thenmove0to s end-if end-perform * nun ist s=(m/n) Display"m="m" n="n" s="s End-Program divisions.
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-09)
¤
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.