about | help | code help+videos | done | prefs |
Given a positive int value num, return a new string holding all prime values less than equal num separated by a space. There should be no space at the beginning or the end of the returned string. strPrime(2) → "2" strPrime(5) → "2 3 5" strPrime(-1) → "" ...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: 201
Copyright Nick Parlante 2017 - privacy