Understanding Computer Programming

Osher Lifelong Learning Institute
University of Illinois, Urbana-Champaign

Scott Badman, Instructor


Topic: Bugs in the Prime program

February 11, 2016


What happens if the number entered is negative?

What happens if the number entered is too large for the computer to handle?

The user enters 1. Is it prime?

Is 0 prime?

What happens if the user enters non-numeric characters?



Grace Hopper's computer "bug", actually a moth, now at the Smithsonian.
The term "bug" had been used in engineering off and on, but Grace Hopper coined the term "debugging" and firmly established the term "bug" in Computer Science.

Grace Hopper's Bug


Understanding Computer Programming

Osher Lifelong Learning Institute
University of Illinois, Urbana-Champaign

Scott Badman, Instructor