Sha256: 4d9f68ca07ac93c07f07783577ad999bb463d72eb5b37323b830a62f4f3c0b9f

Contents?: true

Size: 502 Bytes

Versions: 114

Compression:

Stored size: 502 Bytes

Contents

## Implementation

Define
```type Classification```
for containing the classification values for natural numbers.
You may choose any representation for this type.

Define three Classification constants named
```
	ClassificationDeficient
	ClassificationPerfect
	ClassificationAbundant
```

Implement a function named Classify which accepts
an int64 input and returns a Classification and an error value.

Create an error named ErrOnlyPositive
which is returned when the input is not a positive integer.

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
trackler-2.2.1.78 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.77 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.76 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.75 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.74 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.73 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.72 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.71 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.70 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.69 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.68 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.67 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.66 tracks/go/exercises/perfect-numbers/.meta/hints.md
trackler-2.2.1.65 tracks/go/exercises/perfect-numbers/.meta/hints.md