7 kyu
Array of all primes up to number N
351 of 494otamm
Description:
Code a function which will return an array with all prime numbers smaller than or equal to an arbitrary parameter "n".
Assume that all parameters will be numbers.
Remember that in some test cases with a big enough "n", performance might be (more) important.
Mathematics
Algorithms
Similar Kata:
Stats:
Created | Feb 25, 2016 |
Published | Feb 25, 2016 |
Warriors Trained | 821 |
Total Skips | 9 |
Total Code Submissions | 1712 |
Total Times Completed | 494 |
JavaScript Completions | 351 |
Ruby Completions | 161 |
Total Stars | 13 |
% of votes with a positive feedback rating | 87% of 123 |
Total "Very Satisfied" Votes | 99 |
Total "Somewhat Satisfied" Votes | 16 |
Total "Not Satisfied" Votes | 8 |