The phase φ of any wave is determined by the ratio x/λ consisting of the distance x propagated by the wave and its wavelength λ. Hence, the dependence of φ on λ constitutes an analogue system for the mathematical operation of division, that is to obtain the hyperbolic function f(ξ)≡1/ξ. We take advantage of this observation to decompose integers into primes and implement this approach towards factorization of numbers in a multi-path Michelson interferometer. This work is part of a larger program geared towards unraveling the connections between quantum mechanics and number theory. We briefly summarize this aspect.