Skip to content

Instantly share code, notes, and snippets.

@HamsterofDeath
Created November 15, 2012 21:03
Show Gist options
  • Save HamsterofDeath/4081242 to your computer and use it in GitHub Desktop.
Save HamsterofDeath/4081242 to your computer and use it in GitHub Desktop.
checking product 12.
possible solutions to get sum 8 are
Vector(List(2, 6), List(3, 5), List(4, 4)), having the products Vector(12, 15, 16)
---
possible solutions to get sum 7 are
Vector(List(2, 5), List(3, 4)), having the products Vector(10, 12)
---
checking product 16.
possible solutions to get sum 10 are
Vector(List(2, 8), List(3, 7), List(4, 6), List(5, 5)), having the products Vector(16, 21, 24, 25)
---
possible solutions to get sum 8 are
Vector(List(2, 6), List(3, 5), List(4, 4)), having the products Vector(12, 15, 16)
---
checking product 18.
possible solutions to get sum 11 are
Vector(List(2, 9), List(3, 8), List(4, 7), List(5, 6)), having the products Vector(18, 24, 28, 30)
---
possible solutions to get sum 9 are
Vector(List(2, 7), List(3, 6), List(4, 5)), having the products Vector(14, 18, 20)
---
checking product 20.
possible solutions to get sum 12 are
Vector(List(2, 10), List(3, 9), List(4, 8), List(5, 7), List(6, 6)), having the products Vector(20, 27, 32, 35, 36)
---
possible solutions to get sum 9 are
Vector(List(2, 7), List(3, 6), List(4, 5)), having the products Vector(14, 18, 20)
---
checking product 24.
possible solutions to get sum 11 are
Vector(List(2, 9), List(3, 8), List(4, 7), List(5, 6)), having the products Vector(18, 24, 28, 30)
---
possible solutions to get sum 10 are
Vector(List(2, 8), List(3, 7), List(4, 6), List(5, 5)), having the products Vector(16, 21, 24, 25)
---
checking product 30.
possible solutions to get sum 13 are
Vector(List(2, 11), List(3, 10), List(4, 9), List(5, 8), List(6, 7)), having the products Vector(22, 30, 36, 40, 42)
---
possible solutions to get sum 11 are
Vector(List(2, 9), List(3, 8), List(4, 7), List(5, 6)), having the products Vector(18, 24, 28, 30)
---
checking product 36.
possible solutions to get sum 13 are
Vector(List(2, 11), List(3, 10), List(4, 9), List(5, 8), List(6, 7)), having the products Vector(22, 30, 36, 40, 42)
---
possible solutions to get sum 12 are
Vector(List(2, 10), List(3, 9), List(4, 8), List(5, 7), List(6, 6)), having the products Vector(20, 27, 32, 35, 36)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment