i
L&T Finance
Filter interviews by
1. Prime Factors Operations
You are given an integer n. In one operation, you can do the following
• Pick a number P such that P is prime and n is divisble by P. Assign P
Find the maximum number of operations you can perform.
Function description
Complete the primeGame function in the editor below. It has the following param
Name
Type
Description
INTEGER
The given integer n.
n
Return
The function must return an INTEGER denoting the maximum operations you can perform.
Constraints
• 1 ≤ n ≤ 10^9
Input format for debugging
• The first line contains an integer, n, denoting the initial value of n. desc
Upload resume
Some of the top questions asked at the L&T Finance Graduate Engineer Trainee (Get) interview -
based on 1 review
Rating in categories
Manager
394
salaries
| ₹4.3 L/yr - ₹17 L/yr |
Area Sales Manager
356
salaries
| ₹4 L/yr - ₹14 L/yr |
Senior Manager
351
salaries
| ₹7 L/yr - ₹26 L/yr |
Collection Officer
343
salaries
| ₹1.2 L/yr - ₹3.8 L/yr |
Assistant Manager
335
salaries
| ₹2.2 L/yr - ₹9 L/yr |
Bajaj Finance
HDFC Bank
ICICI Bank
Kotak Mahindra Bank