Sirisha Challagirisirishachallagiri.hashnode.dev·Dec 8, 2023Transform to PrimeGiven an array of n integers. Find the minimum positive number to be inserted in array, so that sum of all elements of array becomes prime. Example 1: Input: N=5 arr = {2, 4, 6, 8, 12} Output: 5 Explanation: The sum of the array is 32 ,we can add ...Code With Sirigeeksforgeeks
Priya Chakrabortypriyachakraborty.hashnode.dev·Jun 17, 2023DAY 11 of PYTHON top 100 questions : from Basic to Advanced !!Write a Python program to check whether a given number is a prime number or not:- num = int(input("Enter a number: ")) result = "" i = 2 while i * i <= num: if num % i == 0: result = "not " break i += 1 if num < 2 or result...37 readsPython
Rajganesh Panduranganrajp.hashnode.dev·Jan 16, 2023Prime Numbers: What They Are and Why They MatterPrime numbers have captivated mathematicians for centuries. They’re so simple yet so important—they’re used in cryptography, coding, computer science, and much more. In this blog post, we’ll explore what prime numbers are, why they’re important, and ...10 likes·134 readsNumber theory