Harmonic oscillator and the Kepler problem are superintegrable systems which admit more integrals of motion than degrees of freedom and all these integrals are polynomials in momenta. We present superintegrable deformations of the oscillator and the Kepler problem with algebraic and rational first integrals. Also, we discuss a family of superintegrable metrics on the two-dimensional sphere, which have similar first integrals.The prime divisors are points on X, denoted P i = (x i , y i ), including point at infinity P ∞ , which plays the role of neutral element 0 in arithmetic of elliptic curves.