Skip to content

feat(routes-f): armstrong and special-number checks #785

Description

@davedumto

Summary

Check whether a number is Armstrong, perfect, prime, or palindromic.

Requirements

  • GET ?n=153 returns { n, is_armstrong, is_perfect, is_prime, is_palindrome }
  • Validate n positive integer <= 2^53
  • Tests cover known Armstrong (153, 9474), perfect (6, 28), edge cases

Scope Constraint - READ BEFORE STARTING

All files for this task must live inside app/api/routes-f/. This includes the route handler, helpers/utilities, types, and tests. Do NOT modify, import from, or add files to lib/, utils/, types/, components/, or anywhere else outside app/api/routes-f/. If you need shared logic, duplicate it inside your subfolder. Keeping everything scoped to this folder is intentional - it keeps these tasks independent and mergeable in any order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions