Prime calc