Can an algorithm be copyrighted? A computer program is treated as a literary work and is protected as such by copyright.