count(0):-!.count(X):- writef('%t\z',[X]), succ(XN,X), count(XN).
?-count(100)
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!