fix on prime calc