Skip to content

In Program PrimeNumberSieve.java has a bug #4

@Manupendra

Description

@Manupendra

17.for (int i = 2; i < n; i += 2) { //In this part, condition will be i<=n or else it will also

prints the last value as prime in case of even number(range)

18.  touched[i] = true;
19. }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions