Skip to content

/patterns smart_number kind of sucks #7

@object-Object

Description

@object-Object

if n <= 2000: return literal
if n <= 2000^2: check for factor in [2, 2000], return product if found
if n <= 4000: return 2000 + (n-2000)
return result of log algorithm

also hardcode 0.25, 0.5, 1.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions