Mercury 勉強メモ

関数論理型言語 Mercury を勉強するブログです.

2014-04-09から1日間の記事一覧

P-99: 2.06 A list of Goldbach compositions

P-99: Ninety-Nine Prolog Problemsの問題にMercuryで解答していきます. 前半 10 = 3 + 7 12 = 5 + 7 14 = 3 + 11 16 = 3 + 13 18 = 5 + 13 20 = 3 + 17 後半 992 = 73 + 919 1382 = 61 + 1321 1856 = 67 + 1789 1928 = 61 + 1867 2078 = 61 + 2017 2438 = …

P-99: 2.05 Goldbach's conjecture

P-99: Ninety-Nine Prolog Problemsの問題にMercuryで解答していきます. {5, 23}

P-99: 2.04 A list of prime numbers

P-99: Ninety-Nine Prolog Problemsの問題にMercuryで解答していきます. [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]

P-99: 2.03 Determine the prime factors of a given positive integer (2)

P-99: Ninety-Nine Prolog Problemsの問題にMercuryで解答していきます. [{3, 2}, {5, 1}, {7, 1}]

P-99: 2.02 Determine the prime factors of a given positive integer

P-99: Ninety-Nine Prolog Problemsの問題にMercuryで解答していきます. [3, 3, 5, 7]