Simplify number type functions

- is-int()
- is-float()
- is-inf()
- is-prime()