We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.
We are currently experiencing an issue with Email verification at this time and working towards a solution. Should you encounter this issue, please click on the "Send Verification Button" a second time and the request should go through. If the issue still persists for you, please email support@alteryx.com for assistance.

Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback

Challenge #275: Greatest Common Denominator

KilianL
Alteryx
Alteryx

No need for prime factorization - Alteryx runs over all potential divisors in 0.3 seconds!

 

Spoiler
275 - Greatest Common Denominator - Kilian.png
Sashikumar
8 - Asteroid

Learned from Solution.

Spoiler
ch275.PNG
ryan-bush
Alteryx
Alteryx

Not the most dynamic solution but fun challenge regardless!

kelly_gilbert
12 - Quasar

For fun, using the Generate Rows tool to iterate and apply the Euclidean algorithm (instead of using a macro).

 

Spoiler
kelly_gilbert_0-1626871791472.png
lemuelcastro
9 - Comet

My solve!

With macro iterative and batch to Euclidean Algorithm!

lemuelcastro
9 - Comet

After Learning with @kelly_gilbert !

Spoiler
lemuelcastro_0-1626896637683.png

 


 

Michael_McKee
Alteryx
Alteryx

A little bit Brute Force.  Could have rolled it up into a single Formula.

CRowlatt
8 - Asteroid

I went for the brute force attack too! Still runs in less than a second.

jagdeep_singh85
8 - Asteroid

HI 

 

PFA my solution

 

AndrewDearstyne
5 - Atom

I can't get any simpler than this.

 

Spoiler

 

AndrewDearstyne_0-1628101879163.png