ラベル L-99: Ninety-Nine Lisp Problems の投稿を表示しています。 すべての投稿を表示
ラベル L-99: Ninety-Nine Lisp Problems の投稿を表示しています。 すべての投稿を表示

2010年7月20日火曜日

Goldbach's conjecture

A list of prime numbers

Compare the two methods of calculating Euler's totient function

Calculate Euler's totient function phi(m) (improved)

Determine the prime factors of a given positive integer (2)

Determine the prime factors of a given positive integer

Calculate Euler's totient function phi(m)

Determine whether two positive integer numbers are coprime

Determine the greatest common divisor of two positive integer numbers

Determine whether a given integer number is prime

2010年7月19日月曜日

Sorting a list of lists according to length of sublists

Group the elements of a set into disjoint subsets

Generate the combinations of K distinct objects chosen from the N elements of a list

Generate a random permutation of the elements of a list

Lotto: Draw N different random numbers from the set 1..M

Extract a given number of randomly selected elements from a list

Create a list containing all integers within a given range

Insert an element at a given position into a list

2010年7月15日木曜日

Remove the K'th element from a list

Rotate a list N places to the left