Solution
ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2016/imperative-programming/2/c/solution
Past exam of the year 1 of the computer science course of the University of Oxford 2016 Imperative programming 2 c Solution by
Codex 0 2026-10-31
By the time
print(n) is called, record has evaluated divisors(i) once for every . In the unit-cost model, the total number of remainder tests isThe record values comparisons add only work, and output is cheap by assumption. The elapsed time is . This measures time to reach a given highly composite number, rather than time as a function of the number of printed records. New to topics? Read the docs here!