Giter Club home page Giter Club logo

elixir_primes's Introduction

Primes multiplication table

For Mac OS X:

  brew install elixir
  git clone https://github.com/igorshapiro/elixir_primes.git
  cd elixir_primes
  mix do deps.get, deps.compile

Run:

  mix run

Sample output:

     |     2     3     5     7    11    13    17    19    23    29
   2 |     4     6    10    14    22    26    34    38    46    58
   3 |     6     9    15    21    33    39    51    57    69    87
   5 |    10    15    25    35    55    65    85    95   115   145
   7 |    14    21    35    49    77    91   119   133   161   203
  11 |    22    33    55    77   121   143   187   209   253   319
  13 |    26    39    65    91   143   169   221   247   299   377
  17 |    34    51    85   119   187   221   289   323   391   493
  19 |    38    57    95   133   209   247   323   361   437   551
  23 |    46    69   115   161   253   299   391   437   529   667
  29 |    58    87   145   203   319   377   493   551   667   841

Run tests:

  mix test

elixir_primes's People

Contributors

igorshapiro avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.