正如 Meyer 和 Ritchie (1967) 首次展示的那樣,do 迴圈(具有固定的迭代限制)是 while 迴圈的特例。僅使用 do 迴圈即可實現的函式稱為原始遞迴函式。(相比之下,可計算函式 可以使用 for 迴圈和 while 迴圈的組合,或僅使用 while 迴圈進行編碼。)原始遞迴函式的示例包括 冪、最大公約數 和 (給出第 個 素數 的函式)。
Dötzel, G. "A Function to End All Functions." Algorithm: Recreational Programming2, 16-17, 1991.Meyer, A. and Ritchie, D. "The Complexity of Loop Programs." Proc. 22nd National ACM Conference. Washington, DC: pp. 465-470, 1967.Péter, R. Rekursive Funktionen in der Komputer-Theorie. Budapest: Akad. Kiado, 1951.Wolfram, S. A New Kind of Science. Champaign, IL: Wolfram Media, 907, 2002.