diff --git a/README.rst b/README.rst
index 4259347a071d232adea96367a05a253dc77278ca..bcbefb699a15378941b4f8feb72d9d0dace75444 100644
--- a/README.rst
+++ b/README.rst
@@ -1,7 +1,7 @@
 The prime benchmark
 ===================
 
-Bencmarking programming languages by running program to find the first X prime
+Benchmarking programming languages by running program to find the first X prime
 numbers. The algorithm is naive and should be implemented the same regardless of
 the language.
 
@@ -31,7 +31,7 @@ Test: ::
 History
 -------
 
-When starting to learn Lua, I wrote a simple program to excersize the table data
+When starting to learn Lua, I wrote a simple program to exercise the table data
 structure. But I had difficulties expressing what I wanted so I first wrote the
 program in Python. After I had the program written in both languages I did the
 obvious thing, I timed them. From there on Barak implemented the program in PHP
diff --git a/prime.php b/prime.php
old mode 100644
new mode 100755
index bc11bc16a4a6c6f903825e9d5e74229963e8e059..34edd531863409ed497b87218e13458089dd430b
--- a/prime.php
+++ b/prime.php
@@ -1,3 +1,4 @@
+#!/usr/bin/env php
 <?php