This is my solution to a program that prints out a multiplication table of the first 10 prime numbers. The program must run from the command line and print to screen 1 table. The body of the table should contain the product of multiplying these numbers. The prime numbers should be calculated by you, instead use some method from your language.
$ ruby prime_numbers_challenge.rb
#### Output
4 |6 |10 |14 |22 |26 |34 |38 |46 |58 |
6 |9 |15 |21 |33 |39 |51 |57 |69 |87 |
10 |15 |25 |35 |55 |65 |85 |95 |115 |145 |
14 |21 |35 |49 |77 |91 |119 |133 |161 |203 |
22 |33 |55 |77 |121 |143 |187 |209 |253 |319 |
26 |39 |65 |91 |143 |169 |221 |247 |299 |377 |
34 |51 |85 |119 |187 |221 |289 |323 |391 |493 |
38 |57 |95 |133 |209 |247 |323 |361 |437 |551 |
46 |69 |115 |161 |253 |299 |391 |437 |529 |667 |
58 |87 |145 |203 |319 |377 |493 |551 |667 |841 |