正如 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.