Example #1
0
File: pe.go Project: Horimotsu/PEGo
/*
Solve007 solves Project Euler 007
*/
func Solve007() (ans int) {
	m := peb.PrimeList(1000000)
	ans = m[10000]
	return
}
Example #2
0
File: pe.go Project: Horimotsu/PEGo
/*
Solve010 solves Project Euler 010
*/
func Solve010() (ans int) {
	m := peb.PrimeList(2e6)
	ans = peb.SumIntList(m)
	return
}