Skip to content

Not transitivity bug #28

@joshuafcole

Description

@joshuafcole
WORKING

search
  num = [#naturals n]
  not(a = math/pow[value: n exponent: 1 / 2]
      b = math/floor[value: a]
      b > 1
      b < n
      c = math/range[from: 2, to: b]
      0 = math/mod[value: n, by: c])
bind
  [#html/div n]
end


NOT WORKING (TRANSITIVITY)

search
  num = [#naturals n]
  a = math/pow[value: n exponent: 1 / 2]
  b = math/floor[value: a]
  not(b > 1
      b < n
      c = math/range[from: 2, to: b]
      0 = math/mod[value: n, by: c])
bind
  [#html/div style: [color: "green"] sort: "{{n}}b" text: "{{n}}: is a prime"]
end

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions