Question: Write a swi prolog program to find the two primes that sum up to the given even integer (Goldbach's Conjecture) Example run: ?- goldbach(28, L).
Write a swi prolog program to find the two primes that sum up to the given even integer (Goldbach's Conjecture)
Example run:
?- goldbach(28, L).
L = [5,23];
L = [11, 17];
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
