Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

New puzzle: lucky numbers inspired by codeforces 122A #10

Description

def sat(d: int, n=6002685529):
    """
    Find a integer factor of n whose decimal representation consists only of 7's and 4's.

    Inspired by [Codeforces Problem 122 A](https://codeforces.com/problemset/problem/122/A)
    """
    return n % d == 0 and set(str(d)) <= {"4", "7"}

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

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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