about | help | code help+videos | done | prefs |
array_optimusPrime -- This method takes an integer called num and returns an integer array that stores all the prime numbers between 1 and num. Precondition: num >= 0. array_optimusPrime(100) → [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97] array_optimusPrime(0) → [] array_optimusPrime(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
Copyright Nick Parlante 2017 - privacy