Skip to content

Commit bb219ac

Browse files
kotpIanWhitney
authored andcommitted
The factors are given, with no need to be prime. (#295)
Giving a new rule where a non-prime number is expected to be a factor, this should not fail. fixes #294
1 parent 5a8d2a6 commit bb219ac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

raindrops.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
- If the number contains 3 as a prime factor, output 'Pling'.
2-
- If the number contains 5 as a prime factor, output 'Plang'.
3-
- If the number contains 7 as a prime factor, output 'Plong'.
4-
- If the number does not contain 3, 5, or 7 as a prime factor,
1+
- If the number contains 3 as a factor, output 'Pling'.
2+
- If the number contains 5 as a factor, output 'Plang'.
3+
- If the number contains 7 as a factor, output 'Plong'.
4+
- If the number does not contain 3, 5, or 7 as a factor,
55
just pass the number's digits straight through.
66

77
## Examples

raindrops.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
blurb: "Write a program that converts a number to a string, the contents of which depends on the number's prime factors."
2+
blurb: "Write a program that converts a number to a string, the contents of which depends on the number's factors."
33
source: "A variation on a famous interview question intended to weed out potential candidates."
44
source_url: "http://jumpstartlab.com"

0 commit comments

Comments
 (0)