Python1 Min Read LetuscrackonJune 11, 2024 Sum of Prime Numbers Given an integer matrix of size M*N as input, the program must print the sum of prime numbers present in the given matrix. Boundary…
C Java Python TCS CodeVita2 Min Read LetuscrackonJune 10, 2024 Consecutive Prime Sum – TCS CodeVita Some prime numbers can be expressed as a sum of other consecutive prime numbers. For example 5 = 2 + 3, 17 = 2 + 3 + 5 + 7, 41 = 2 + 3 + 5 + 7…
C Java Python2 Min Read LetuscrackonJune 9, 2024 Split & Check Prime Integers The program must accept an integer N as the input. The program must split the integer N into two parts and print them if both are prime…
Java Python1 Min Read LetuscrackonJune 9, 2024 Next Prime Number A number N is passed as the input. The program must print the next immediate primenumber.Input Format:The first line will contain N.Output…
Python1 Min Read LetuscrackonJune 8, 2024 Prime Numbers – N Digits The program must accept N distinct digits as the input. The program must print all possible prime numbers…
C2 Min Read LetuscrackonJune 8, 2024 Prime Numbers – Ranges The program must accept T pairs of integers as the input. For each pair P (P contains two integers X and Y)…