Skip to content

Instantly share code, notes, and snippets.

@akrennmair
Created December 17, 2013 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akrennmair/8011709 to your computer and use it in GitHub Desktop.
Save akrennmair/8011709 to your computer and use it in GitHub Desktop.
func main() {
ps := filter(func(n int) bool { return n > 9 }, upto(Primes(), 100))
pslice := make([]int, 0, 30)
for p := range ps {
pslice = append(pslice, p)
}
for _, cand := range summingSubsets(pslice, 600, 8) {
fmt.Println(cand)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment