Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 7.2.3) Copyright (c) 1990-2015 University of Amsterdam, VU Amsterdam SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Please visit http://www.swi-prolog.org for details. For help, use ?- help(Topic). or ?- apropos(Word). Decimal Hex Binary 1022 3FE 1111111110 1023 3FF 1111111111 1024 400 10000000000 1025 401 10000000001 1026 402 10000000010 1027 403 10000000011 true. % halt