Sha256: 0134f9d6862caf2acb0da01079b375137518adc52d2e1c045af7b52c9cb76e6f

Contents?: true

Size: 618 Bytes

Versions: 9

Compression:

Stored size: 618 Bytes

Contents

- If the number contains 3 as a factor, output 'Pling'.
- If the number contains 5 as a factor, output 'Plang'.
- If the number contains 7 as a factor, output 'Plong'.
- If the number does not contain 3, 5, or 7 as a factor,
  just pass the number's digits straight through.

## Examples

- 28's factors are 2, 4, **7**, 14.
  - In raindrop-speak, this would be a simple "Plong".
- 30's factors are 2, **3**, **5**, 6, 15.
  - In raindrop-speak, this would be a "PlingPlang".
- 34 only has two factors- 2 and 17.
  - Raindrop-speak doesn't know what to make of that,
    so it just goes with the straightforward "34".

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
trackler-1.0.4.0 common/exercises/raindrops/description.md
trackler-1.0.3.0 common/exercises/raindrops/description.md
trackler-1.0.2.1 common/exercises/raindrops/description.md
trackler-1.0.2.0 common/exercises/raindrops/description.md
trackler-1.0.1.2 common/exercises/raindrops/description.md
trackler-1.0.1.1 common/exercises/raindrops/description.md
trackler-1.0.1.0 common/exercises/raindrops/description.md
trackler-1.0.0.1 common/exercises/raindrops/description.md
trackler-1.0.0 common/exercises/raindrops/description.md