Skip to content

[FEATURE] Added BostonNumber in math folder(cpp) #1657

@URVASHI-PAHWA

Description

@URVASHI-PAHWA

Detailed description

A Boston number is a composite number, the sum of whose digits is the sum of the digits of its prime factors obtained as a result of prime factorization (excluding 1 ). The first few such numbers are 4,22 ,27 ,58 ,85 ,94 and 121 . For example, 378 = 2 × 3 × 3 × 3 × 7 is a Boston number since 3 + 7 + 8 = 2 + 3 + 3 + 3 + 7. Write a program to check whether a given integer is a Boston number.

Context

It is one of the questions where one can practice problem solving in maths while can have a good learning with dsa.

Possible implementation

No response

Additional information

I wanted to contribute in cpp , kindly assign this issue to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststaleAuthor has not responded to the comments for over 2 weeks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions