Moderator: Konzepte der Programmiersprachen

FelixGail
Neuling
Beiträge: 3
Registriert: 23. Jan 2019 18:32

Is the test for task 1.4 in assignment 11 valid?

The template looks like this:

Code: Alles auswählen

test4 = take 20 comb235 == [1,2,3,4,5,6,8,9,10,12,15,16,18,20,24,25,27,30,32,36]

as 14, 22, 28 and 34 are multiplications of 2, shouldn't the 20 first elements of this list be

Code: Alles auswählen

[1,2,3,4,5,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26]
?

0b101101101
Endlosschleifenbastler
Beiträge: 179
Registriert: 15. Apr 2015 18:24

### Re: Assignment 11 Task 1.4

I don't think 14 should be part of the list. See, 14 = 7*2, so there is a 7. And 7 is neither 2, 3 or 5.
It seems you want to generate products who have at least one factor 2, 3, 5, but actually the task says to produce products whose factors are _only_ 2, 3, 5. I hope that clears it up

FelixGail
Neuling
Beiträge: 3
Registriert: 23. Jan 2019 18:32

### Re: Assignment 11 Task 1.4

oh, that was stupid. thanks