Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.4k+ articles
School Learning
11.4k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Mathematics
5.7k+ articles
Maths
590+ articles
GCD-LCM
330+ articles
QA – Placement Quizzes
300+ articles
QA - Placement Quizzes
270+ articles
QA - Placement Quizzes-LCM
12 articles
LCM
55 posts
Popular Articles
Recent Articles
Relation between HCF and LCM
Last Updated: 27 November 2024
The relationship between HCF (Highest Common Factor) and LCM (Least Common Multiple) plays a crucial role in various mathematical applicatio
...read more
LCM
HCF
Picked
Mathematics
School Learning
Arithmetic
Python Program to Find LCM of Two Numbers
Last Updated: 02 July 2024
We are given two numbers and our task is to find the LCM of two numbers in Python. In this article, we'll discuss different approaches to fi
...read more
Python
LCM
Python Programs
Picked
LCM - Least Common Multiple
Last Updated: 12 May 2025
The Least Common Multiple (LCM) of two numbers is the smallest positive number that is evenly divisible by both of them. For example, the LC
...read more
GCD-LCM
LCM
Maths
Mathematics
School Learning
Math-Concepts
Math Tutorials
Similar Topics
DSA
22.4k+ articles
School Learning
11.4k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Mathematics
5.7k+ articles
Maths
590+ articles
GCD-LCM
330+ articles
QA – Placement Quizzes
300+ articles
QA - Placement Quizzes
270+ articles
QA - Placement Quizzes-LCM
12+ articles
Smallest string divisible by two given strings
Last Updated: 30 June 2021
Given two strings S and T of length N and M respectively, the task is to find the smallest string that is divisible by both the two strings.
...read more
Strings
Mathematical
divisibility
LCM
HCF
Technical Scripter 2020
DSA
Minimum number of Cuboids required to form a Cube
Last Updated: 07 September 2021
Given L, B, and H which denotes the length, breadth, and height of a cuboid, the task is to find the minimum number of cuboids of specified
...read more
Analysis of Algorithms
Mathematical
Geometric
Competitive Programming
GCD-LCM
C++
LCM
area-volume-programs
DSA
C Program to find LCM of two numbers using Recursion
Last Updated: 15 December 2020
Given two integers N and M, the task is to find their LCM using recursion.Examples:Input: N = 2, M = 4Output: 4Explanation: LCM of 2, 4 is 4
...read more
Misc
Mathematical
Recursion
LCM
DSA
Find two numbers with given sum and maximum possible LCM
Last Updated: 28 November 2023
Given an integer X, the task is to find two integers A and B such that sum of these two numbers is X and the LCM of A and B is maximum.Examp
...read more
Mathematical
Competitive Programming
School Programming
LCM
DSA
Minimum possible value of max(A, B) such that LCM(A, B) = C
Last Updated: 18 March 2021
Given an integer C, the task is to find the minimum possible value of max(A, B) such that LCM(A, B) = C.Examples:Input: C = 6Output: 3max(1,
...read more
Mathematical
LCM
DSA
Find two numbers with the given LCM and minimum possible difference
Last Updated: 20 February 2022
Given an integer X, the task is to find two integers A and B such that LCM(A, B) = X and the difference between the A and B is minimum possi
...read more
Mathematical
LCM
C++ Programs
DSA
Maximum LCM among all pairs (i, j) of first N natural numbers
Last Updated: 10 March 2022
Given a positive integer N 1, the task is to find the maximum LCM among all the pairs (i, j) such that i j ? N.Examples:Input: N = 3Output
...read more
Mathematical
LCM
Natural Numbers
DSA
lcm() in C++ 17
Last Updated: 27 November 2024
The lcm() is a built-in function introduced in C++17. It is used to calculate the least common multiple (LCM) of two integers. The LCM of tw
...read more
STL
C++
LCM
cpp-numerics-library
Inbuilt function for calculating LCM in C++
Last Updated: 14 September 2024
Many times while we do programming, we need to calculate the Least Common Multiple (LCM) between two numbers. We have already discussed how
...read more
Mathematical
C++
LCM
DSA
QA - Placement Quizzes | LCM | Question 5
Last Updated: 28 June 2021
Three numbers are in the ratio of 2 : 3 : 4 and their L.C.M. is 240. Their H.C.F. is:(A) 40(B) 20(C) 30(D) 10 Answer: (B) Explanation: Let t
...read more
QA - Placement Quizzes
QA – Placement Quizzes
QA - Placement Quizzes-LCM
LCM
QA - Placement Quizzes | Numbers, LCM and HCF | Question 12
Last Updated: 28 June 2021
The LCM of two co-prime numbers is 117. What is the sum of squares of the numbers ?(A) 220(B) 1530(C) 250(D) 22 Answer: (C) Explanation: 117
...read more
QA - Placement Quizzes
QA – Placement Quizzes
QA - Placement Quizzes-LCM
LCM
QA - Placement Quizzes | Numbers, LCM and HCF | Question 11
Last Updated: 28 June 2021
Three friends started running together on a circular track at 8:00:00 am. Time taken by them to complete one round of the track is 15 min, 2
...read more
QA - Placement Quizzes
QA – Placement Quizzes
QA - Placement Quizzes-LCM
LCM
1
2
3
4
>>
Last
1
2
3
4
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !