about | help | code help+videos | done | prefs |
sumPrimes
Solve this problem first: https://codingbat.com/prob/p201853 Define a function that when passed an integer, returns the sum of all prime numbers from 2 to that integer (inclusive on both sides). sumPrimes(10) → 17 sumPrimes(20) → 77 sumPrimes(100) → 1060 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 3 Post-solution available
Copyright Nick Parlante 2017 - privacy