Project Euler #249: Prime Subset Sums

  • + 0 comments

    2 is the size of the upcoming array. 10,4 are the elements of the array.

    for each element i in the array, do the following: 1. find the set of prime numbers from 0-i. 2. Find all the subsets from the above set, such that, the sum of those subset is again a prime number. 3. Do step 1&2 for all the numbers in the array.