Пример #1
0
/*
Solve012 solves Project Euler 012
*/
func Solve012() (ans int) {
	for i := 0; ; i++ {
		ans = peb.SumN(i)
		if peb.NumOfDivisors(ans) > 500 {
			break
		}
	}
	return
}
Пример #2
0
/*
Solve006 solves Project Euler 006
*/
func Solve006() (ans int) {
	ans = peb.SumN(100)*peb.SumN(100) - peb.SumN2(100)
	return
}