cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

Check if number is a perfect number

Open syedmohdf opened this issue 9 years ago • 18 comments

syedmohdf avatar Oct 04 '17 15:10 syedmohdf

@AdiChat I'd like to do this in C++ or python :)

manan904 avatar Oct 04 '17 15:10 manan904

Sure. Go for it 👍

AdiChat avatar Oct 04 '17 15:10 AdiChat

I'd like to do this in C++, I can do it in python too. Pretty much whichever language @manan904 doesn't do

AlexanderDavid avatar Oct 04 '17 16:10 AlexanderDavid

@AdiChat Implementing this in Python

devAmoghS avatar Oct 04 '17 16:10 devAmoghS

@imfaizz Where should i make the PR?

devAmoghS avatar Oct 04 '17 16:10 devAmoghS

Create a folder perfect_number under mathematical_algorithms and add code to this folder

AdiChat avatar Oct 04 '17 17:10 AdiChat

We now have three directories for this and duplicates in Python and C++.

https://github.com/OpenGenus/cosmos/tree/master/code/mathematical-algorithms/perfect_numbers

https://github.com/OpenGenus/cosmos/tree/master/code/mathematical-algorithms/perfect_number

https://github.com/OpenGenus/cosmos/tree/master/code/mathematical-algorithms/perfect-number

frazjp65 avatar Oct 04 '17 20:10 frazjp65

Major issue. I will correct it immediately 👍

To avoid this in future, folder name should be decided before pull requests if it does not exist 👍

AdiChat avatar Oct 04 '17 20:10 AdiChat

I was going by:

Create a folder perfect_number under mathematical_algorithms and add code to this folder

I made a PR for the python one, but I don't know which of the three C++ ones you want to keep.

frazjp65 avatar Oct 04 '17 21:10 frazjp65

Resolved 👍

I will set a naming convention (though the folder name you used is what is implied from previous versions and will be used subsequently) to avoid such issues and make corresponding change soon 👍

AdiChat avatar Oct 04 '17 21:10 AdiChat

@AlexanderDavid What do you mean by manan doesn't do???

manan904 avatar Oct 05 '17 05:10 manan904

`` PerfectNumber.txt

C++ file for PerfectNumber

edwardrichtofen115 avatar Oct 05 '17 05:10 edwardrichtofen115

Perfect number checker in Rust #544

Jay9596 avatar Oct 05 '17 10:10 Jay9596

@manan904 You said you'd do it in python /or/ C++. So I picked the one you wouldn't do it in

AlexanderDavid avatar Oct 05 '17 18:10 AlexanderDavid

Will implement in ruby :)

weirdGuy avatar Oct 05 '17 19:10 weirdGuy

Sure. Go ahead 👍

AdiChat avatar Oct 05 '17 19:10 AdiChat

Made it in Kotlin #2833

puma3 avatar Oct 30 '17 22:10 puma3