2
Chat with our AI personalities
Split the number in half and make an equation adding the two together to make the desired amount. Unless the number that is half the total is prime, adjust the first number down by an amount to make it a prime number, then adjust the second one up by an equal amount and check whether it is also a prime number. If the second number is also a prime number, you have found two prime numbers that equal the desired amount. If not, adjust the first number down to another prime number, repeating the procedure above until you have two prime numbers.If you split 144 in half, the result is 72. Take the equation 72 + 72 = 144. Since 71 is prime, adjust the first number down by 1 and the second number up by 1 to get 71 + 73 = 144. Since 73 is prime, too, you now have two prime numbers that add up to 144.
First write a program to generate the prime number. After one prime number was generated, divide the big int number by the prime number. If the remainder is zero then quotient is the second prime number ( also it is important to check whether the quotient is prime number or not because sometimes you will get wrong answer). Repeat the process until you get the result.
84
Yes. To be composite, the first number has at least 2 prime factors, the second number also has at least prime factors; the product of the two will have at least 4 prime factors, so it must be a composite number.
You is called a prime number!You is called a prime number!You is called a prime number!You is called a prime number!