def check_less_than_max_nums(max) less_than_max_num_array = [] (0..(max-1)).each do |i| less_than_max_num_array.push(i) end return less_than_max_num_array end def check_divisible_by_three_five (numbers) divisible_numbers = [] numbers.each do |i| if((i % 3 === 0) || (i % 5 === 0)) #AND ARE divisible by either three or five if((i % 5 === 0) && (i % 3 === 0)) #BUT ARE NOT divisible by _both_ three and five divisible_numbers.push(i) end end end return divisible_numbers end def crazy_nums(max) less_than_max_nums = check_less_than_max_nums(max) numbers #ARE less than max divisible_by_three_five_nums = check_divisible_by_three_five(less_than_max_nums) puts divisible_by_three_five_nums.sort #You should return the result in increasing order. end crazy_nums(1000)