We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
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.

 

 

 

 

28 REPLIES 28
Carolyn
12 - Quasar
12 - Quasar

Solved in 3 tools. Like others, I can't read good and included 1000 the first attempt :)

 

Spoiler

2025-08-06 11_23_21-Alteryx Designer x64 - Euler_1_Carolyn.yxmd.png

 

caltang
17 - Castor
17 - Castor

Did it with 3 tools! @Pilsner This is an excellent initiative. Should be its own Alteryx challenge category. 

 

IMG_4797.jpeg

 

IMG_4798.jpeg

 

 

 

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
gawa
16 - Nebula
16 - Nebula

@Pilsner Love this project, thanks!

 

2 tools: Text tool + Formula tool

Spoiler
image.png

I applied Gauss Summation. and De Morgan's laws.
Gauss Summation requires the first and last component of number sequence to know the summation. 
3+6+...+996+999=(3+999)*333/2
5+10+...+995=(5+995)*199/2

According to De Morgan's laws, the set of multiple of 3 and 5 is; Set{multiple of 3} + Set{multiple of 5} - Set{multiple of 3*5}
image.png
abacon
12 - Quasar

Really cool project, excited to participate in the rest of them.

 

Spoiler
image.png
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

Sorry to be late.

I tried in two ways.

 

Spoiler


Eulerex_1_workflow.png

 

AkimasaKajitani
17 - Castor
17 - Castor

My solution!

 

Spoiler
image.png
Pilsner
13 - Pulsar

@Yoshiro_Fujimori I saw your filter tool, which briefly confused me, then I thought that's very clever:

Screenshot 2025-08-20 225759.png


Exploiting the fact that 0 * anything = 0, instead of using an OR statement, is a nice trick.

DaisukeTsuchiya
14 - Magnetar
14 - Magnetar

I just solved without tool golf.

 

Spoiler

I simply used the Generate Row Tool to find multiples of 3 and multiples of 5, and then used the Unique Tool to remove duplicates. It’s enlightening to see everyone's various ingenious approaches.

スクリーンショット 2025-08-21 095651.png
martinson
11 - Bolide

Great Challenge!

Spoiler
martinson_0-1756294512100.png

Answer 233168
Time 3:00

 

Cheers,
martinson

LinkedIN

Bulien
Labels
Top Solution Authors