[dlang.org] [D-Programming-Language/d-programming-language.org] f987eb: Update concepts.dd

GitHub noreply at github.com
Sun Feb 3 08:20:24 PST 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/d-programming-language.org
  Commit: f987eb3e1c1d86bdd95eb5328f9c01d542aaa674
      https://github.com/D-Programming-Language/d-programming-language.org/commit/f987eb3e1c1d86bdd95eb5328f9c01d542aaa674
  Author: John Colvin <john.loughran.colvin at gmail.com>
  Date:   2013-01-31 (Thu, 31 Jan 2013)

  Changed paths:
    M concepts.dd

  Log Message:
  -----------
  Update concepts.dd

The old version of isprime would return false for 2 and return true for any n with no factor less than sqrt(n).

These alterations fix that.


  Commit: 70c43cb7057724425b62cb65559c3c53bc898eee
      https://github.com/D-Programming-Language/d-programming-language.org/commit/70c43cb7057724425b62cb65559c3c53bc898eee
  Author: John Colvin <john.loughran.colvin at gmail.com>
  Date:   2013-02-02 (Sat, 02 Feb 2013)

  Changed paths:
    M concepts.dd

  Log Message:
  -----------
  Update concepts.dd

in function isPrime: reversed the change to the condition in the loop. Changed name to isPrime in keeping with style guide.


  Commit: dbc57018ebfcbfa543c98ee4eab38bc4d3151d4c
      https://github.com/D-Programming-Language/d-programming-language.org/commit/dbc57018ebfcbfa543c98ee4eab38bc4d3151d4c
  Author: John Colvin <john.loughran.colvin at gmail.com>
  Date:   2013-02-03 (Sun, 03 Feb 2013)

  Changed paths:
    M concepts.dd

  Log Message:
  -----------
  Update concepts.dd

in isPrime: fixed braces style and corrected inequality.


  Commit: 7b7b42f74ea90f33277e9c3fc519ed5e232618e5
      https://github.com/D-Programming-Language/d-programming-language.org/commit/7b7b42f74ea90f33277e9c3fc519ed5e232618e5
  Author: Andrei Alexandrescu <andrei at erdani.com>
  Date:   2013-02-03 (Sun, 03 Feb 2013)

  Changed paths:
    M concepts.dd

  Log Message:
  -----------
  Merge pull request #244 from John-Colvin/patch-1

fix the algorithm in the isprime example


Compare: https://github.com/D-Programming-Language/d-programming-language.org/compare/0581ae670f89...7b7b42f74ea9


More information about the dlang.org mailing list