Cognizant1 Min Read LetuscrackonFebruary 25, 2025 Function Prime or Not – CTS PATTERN Function Prime or Not – CTS PATTERN: You are required to fix all logical errors in the given code. You can click on run anytime to check…
Python2 Min Read LetuscrackonJanuary 29, 2025 Sort Rows by Prime, Even and Odd count Sort Rows by Prime, Even and Odd count: An integer matrix of size R*C is given as input. The program must sort the rows based on the number…
Python1 Min Read LetuscrackonDecember 5, 2024 Print Prime Numbers from 2 to N Program In Python The program must accept an integer N as the input. The program must print all the prime numbers from 2 to N (inclusive of N) as…
Python1 Min Read LetuscrackonNovember 2, 2024 Prime Number An integer value N is passed as the input. The program must print YES if N is prime number. Else the program must print NO. Input Format:The…
C Java Python1 Min Read LetuscrackonJune 12, 2024 Find the Only Even Prime Digit Prime numbers, especially in the realm of single digits, present captivating patterns. One such pattern is the existence of only one even…
C Java Python2 Min Read LetuscrackonJune 12, 2024 Double Every Prime Digit and Append to the Number The program must accept an integer N as the input. The task is to double the value of every prime digit in N and then append those values to N…
C Java Python2 Min Read LetuscrackonJune 12, 2024 Difference Between Highest and Lowest Prime Digits The program must accept an integer N as the input. The task is to find the highest and the lowest prime digits in the number and print the…
C Java Python1 Min Read LetuscrackonJune 12, 2024 Count Digits That Are Both Prime and Even The program must accept an integer N as the input. The task is to count and print the number of digits that are both prime and even in the…
C Java Python1 Min Read LetuscrackonJune 12, 2024 Average of Prime Digits The program must accept an integer N as the input. The task is to calculate the average of all the prime digits present in the number and…
C Java Python1 Min Read LetuscrackonJune 12, 2024 Twisted Prime The program must accept an integer N as the input. The program must print YES if N is a twisted prime number. Else the…