One joy of being parents when your children are in higher grade (say year 4 or 5) is that you’ll get a chance to review math lesson again in order to explain or help your children with their math problem. Nowadays, things are much easier for us parents due to unlimited of resources on the Internet.

Earlier this evening, after spending time learning with my grade 4 child about Least Common Multiple (LCM) [1], I wanted to know the quickest way to verify the answer when computing of some numbers. While there are many implementations of many programming language, I found one way to do this using Julia with its built-in function Base.lcm [2].

Here is an example of using lcm() function in Julia:

julia> lcm(3, 5, 23)