Function Composition

1)      Write function which will do the following: get a function which
takes an argument and return function which applies given function twice

2)      Write similar function which will apply n times (not only twice)
Optimized Multiples Of
Problem 2

Fibonacci sequence
Problem3.LargestPrimeNumber

The prime factors of 13195 are 5, 7, 13 and 29.

What is the largest prime factor of the number 600851475143 ?
Latest solutions

Problem 4. Polindrom
new problems
Problem 13

Problem 13