Start Free Trial

General Discussions

Discuss any topics that are not product-specific here.

Euleryx Project 1 - Multiples of 3 or 5

Pilsner
13 - Pulsar

Euleryx Problem 1 - Multiples of 3 or 5

 

Pilsner_1-1753967002059.png

 

Here's my full workflow and Answer:

Spoiler
Pilsner_2-1753967021472.png

 

Answer: 233168  

 

Method:

 

With this being the first problem in the series, we’re kicking things off with a relatively simple challenge. Typically, the challenges do get harder (which will likely become clear by Problem 3), but rest assured, we will do our best to explain what we’ve done.

 

That being said, the solution below is just one way to solve this problem; there are many different available routes! 

Pilsner_3-1753967266803.png

 

 

 

Here's how I tackled this problem:

 

  1. I began by creating two lists, one list containing all the multiples of 3, and the other list containing all the multiples of 5. I found the Generate Rows tool to be ideal for this task.

    Pilsner_6-1753967422431.png

     

  2. Using both the Union and the Unique tool, I created a list of all the distinct multiples of 3 or 5 (below 1000).

    Pilsner_7-1753967429133.png

     



  3. Finally, to sum the column, I used the Summarise tool.

    Pilsner_8-1753967459220.png

     

  4. Submit your answer to the Project Euler website. 

Pilsner_9-1753967466986.png

 

 

Congratulations, you’ve finished your first Project Euler challenge! Looking forward to seeing you all this time next week for Problem 2.

 

 

DoneImDoneGIF.gif



Summary

In just 3 simple steps, we have already found an answer to the first Project Euler challenge. Please feel free to share your solutions below. I hope you enjoyed the first challenge.

 

 

 

 

31 REPLIES 31
NicoleJ
Alteryx
Alteryx

Jumping on the Euleryx train! Solved two ways - once in Designer, and once (in a different way) in Designer Cloud!

 

Spoiler
In Designer (similar to posted solution):
Euleryx1_DD.png


In Designer Cloud (tool golf, with one fewer tool!): 

Euleryx1_DC.png

Excited to try the next few! 

Cheers, NJ

Cheers!
NJ
Director, Product Management
Alteryx
jrlindem
12 - Quasar

First off, @Pilsner you're a beast... one tool?!  Nicely done.

 

Second... here's my solution.  4x more tools (barring browse) than Pilsner 😵

Spoiler
jrlindem_0-1761252993102.png

 

Labels