You can take the examples of the prime numbers as

2,3 , 5

so you can take the lcm as

___2_|_2,_,3,_5______

___3 | 1, 1. 5

___5 | 1,1,1

so your ans is 2*3*5

=30

or the easy way is just multiply the numbers and you get the lcm of that prime numbers

2,3 , 5

so you can take the lcm as

___2_|_2,_,3,_5______

___3 | 1, 1. 5

___5 | 1,1,1

so your ans is 2*3*5

=30

or the easy way is just multiply the numbers and you get the lcm of that prime numbers