Pergunta de entrevista da empresa Tech Mahindra

1. Write a program to find the prime numbers in a given range. 2. Are you comfortable with Java programming? 3. Can you explain your projects in detail?

Resposta da entrevista

Sigiloso

13 de nov. de 2025

1. I solved the prime number question using the brute-force approach with a for loop running till the given range + 1. For the optimal solution, I iterated only up to the square root of the number and was able to solve it successfully while explaining the intuition to the panel members. 2. Since I belong to the Python development field, I said yes when asked about Java, as the core concepts remain the same and only the syntax differs. 3. I explained my projects as well, but they did not proceed with my selection.