Skip to content

Instantly share code, notes, and snippets.

@bradarner
Last active May 9, 2019 14:17
Show Gist options
  • Save bradarner/64d7ec0a032ea81146a4f539aff2ad79 to your computer and use it in GitHub Desktop.
Save bradarner/64d7ec0a032ea81146a4f539aff2ad79 to your computer and use it in GitHub Desktop.

Coding Challenge

Objective

Write a program that prints out a multiplication table of the first 10 primary numbers.

The program must run from the command line and print one table to STDOUT. The first row and column of the table should have the 10 primes, with each cell containing the product of the primes for the corresponding row and column.

Notes

  • Consider complexity. How fast does your code run? How does it scale?
  • Consider cases where we want N primes.
  • Do NOT use a Prime generator from a standard library (write your own).
  • Write tests. Try to demonstrate TDD/BDD.
  • Use no other external dependencies other than those necessary for testing.
  • Include a README.

When you're finished...

Put your code on GitHub and let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment