title: Prime numbers in array
body: <p>I need to write a function that recieve from the user a number(n), and the function return an array with all the prime numbers until the user number(n).
  I know how to write the function that check if number is prime, but i dont know how to enter the numbers to an array.. for example if the user entered 53, it will return [2 ,3 ,5 ,7 ,11 ,13 ,17 ,19 ,23 ,29 ,31 ,37 ,41 ,43 ,47 ,53].
  I forgot to tell that the language is java.. my bad!</p>