func E52() (i int) { for i = 1; ; i++ { if utils.ArePermutations(i, 2*i) && utils.ArePermutations(i, 3*i) && utils.ArePermutations(i, 4*i) && utils.ArePermutations(i, 5*i) && utils.ArePermutations(i, 6*i) { break } } return i }
func E49() string { primes := utils.Primes(10000) var a, b, c int for i := 0; i < len(primes); i++ { for j := i + 1; j < len(primes); j++ { if utils.ArePermutations(primes[i], primes[j]) { k := 2*primes[j] - primes[i] if utils.IsPrime(k) && utils.ArePermutations(primes[i], k) { a, b, c = primes[i], primes[j], k } } } } return fmt.Sprintf("%d%d%d", a, b, c) }