Skip to content

Digit Dilemma #83

Open
Open
@Ayaz-75

Description

@Ayaz-75
def sat(x: int):  
    """Find an integer x such that the sum of the digits of x squared equals x."""  
    return sum(int(d) for d in str(x ** 2)) == x 

Solvers, post your solutions in the comments using the following formatting:

<details><summary>Reveal solution</summary>

```python
def sol():
    return 9  # replace with your solution
```
</details>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions