Skip to content

project_euler/problem_010/sol1.py #8821

@MatthiasHeinz

Description

@MatthiasHeinz

Repository commit

2104fa7

Python version (python --version)

Python 3.10.4

Dependencies version (pip freeze)

Does not matter.

Expected behavior

solution(2)

should yield 2.

Actual behavior

The result of

solution(2)

is 0.

In this line the condition

if n > 2

should read

if n >= 2

instead.

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