Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,13 +1,13 @@
|
|||
:- use_module(library(clpfd)).
|
||||
|
||||
babbage_(B, B, Sq) :-
|
||||
B * B #= Sq,
|
||||
number_chars(Sq, R),
|
||||
append(_, ['2','6','9','6','9','6'], R).
|
||||
B * B #= Sq,
|
||||
number_chars(Sq, R),
|
||||
append(_, ['2','6','9','6','9','6'], R).
|
||||
babbage_(B, R, Sq) :-
|
||||
N #= B + 1,
|
||||
babbage_(N, R, Sq).
|
||||
|
||||
N #= B + 1,
|
||||
babbage_(N, R, Sq).
|
||||
|
||||
babbage :-
|
||||
once(babbage_(1, Num, Square)),
|
||||
format('lowest number is ~p which squared becomes ~p~n', [Num, Square]).
|
||||
once(babbage_(1, Num, Square)),
|
||||
format('lowest number is ~p which squared becomes ~p~n', [Num, Square]).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue