The standard file extension for Prolog programs is .pl. In case your browser interprets this as a perl program and downloads the file rather than displaying it, we've also included a .txt version of each Prolog program linked on this page that should show in your browser.