Just write a loop that goes through "candidates" (for example, numbers from 2 to 100). To check whether each number is a Prime number, write a second loop that checks whether it is divisible by all numbers from 2 up to the number itself. If the first factor you thus find is the number itself, then it is a prime number. For example, in Java:
...
for (i=2; i<=100; i++)
Â? for (j=2; j<= i; i%j<>0);
Â? if (i==j) System.out.println(i);
...
Note that the second "for" loop uses an empty instruction, so it will just increment the variable "j" until it finds a factor.
Also note that the program is "optimized" for simplicity; it is not optimized for speed.
A number as a product of prime numbers would be "x".
Numbers divisible by 1 & number itself are called prime numbers. These numbers also have the property to be odd numbers.
That's called the prime factorization.
Prime factorization of 27 = 3x3x3
You can't write that as the sum of two prime numbers. Note: Goldbach's Conjecture (for expressing numbers as the sum of two prime numbers) applies to EVEN numbers.
2x2x2x3
2x2x3x5
2x2x3x3x3
In the same way as you would write any integer.
fdsgfhgdfhgdf
Since there is an infinite set of prime numbers the answer would be infinity.
2x2x2x2x3x3=144