I've got this very slow solution to Project Euler 4,
:- use_module(library(clpfd)).
euler_004(P) :-
A in 1..9,
B in 0..9,
C in 0..9,
P #= A * 100001 + B * 10010 + C * 1100,
D in 100..999,
E in 100..999,
E #>= D,
P #= D * E,
labeling([max(P)], [P]).
Is there a way to speed it up?