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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!