tom_mellior
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
166 ms·
- 1501.▲
- 1502.▲
- 1503.▲
- 1504.▲
- 1505.▲
- 1506.▲
- 1507.▲
- 1508.▲
- 1509.▲
- 1510.▲
- 1511.▲
- 1512.▲
- 1513.▲
- 1514.▲
- 1515.▲
- 1516.▲
- 1517.▲
Prolog doesn't do that automatically, but you can write the same thing in Prolog too: xkcd_ugly(A, B, C, D) :-
P = 711,
Q = 711000000,
Max_A is 1 + P // 4,
between(1, Max_A, A),
Q - 1518.▲
- 1519.▲
- 1520.▲
- 1521.▲
- 1522.▲
- 1523.▲
- 1524.▲
- 1525.▲
- 1526.▲
- 1527.▲
- 1528.▲
- 1529.▲
- 1530.▲
More ›