Last active
December 15, 2015 08:39
-
-
Save dmalikov/5233047 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| α(L,P,R) :- β(L,P,R,0). | |
| β([H|T],P,R,A) :- pow(H,P,X), β(T,P,R,A + X). | |
| β([H],P,R,A) :- pow(H,P,X), R is A + X. | |
| γ(X, Y, P) :- α(X, P, A), α(Y, P, B), A == B, !. | |
| main(A) :- findall(X, (between(0,100,X), γ([0,3,5,6,9,10,12,15], [1,2,4,7,8,11,13,14], X)), A). |
dmalikov
commented
Mar 24, 2013
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment