Fix Integer#prime? not caching correctly