Cleaned up prime