even(0).even(X) :- mod(X,2) is 0.
mod(2,2).
GNU Prolog 1.3.1 By Daniel Diaz Copyright (C) 1999-2009 Daniel Diaz uncaught exception: error(existence_error(procedure,(mod)/2),top_level/0)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!