Create Prime number program with efficiency methods