Prime calculation added