Skip to content

math:prime? thinks all non-integers are prime #49

Description

@kg583
(import std.Math)
(math:prime? 1.5) => true

This looks to be because the check rightly finds no integer divisors of the input.

(math:divs 1.5) likewise returns [1.5] where I might've expected an error, though given that a non-integer is not valid input in this case I'm unsure if matters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions