Skip to content

[BUG] check_prime.cpp returns incorrect output for 9 #1536

@codingbbq

Description

@codingbbq

Description

If you check the number 9 for prime, it returns true.

Expected Behavior

is_Prime(9) should return false

Actual Behavior

is_Prime(9) should return true

Possible Fix

Changes in the for loop ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions