<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Problem 38 on Shai Asher</title><link>https://slow-is-smooth.io/tags/problem-38/</link><description>Recent content in Problem 38 on Shai Asher</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Mon, 21 Jul 2025 12:53:38 +0000</lastBuildDate><atom:link href="https://slow-is-smooth.io/tags/problem-38/index.xml" rel="self" type="application/rss+xml"/><item><title>Solving the Pandigital Puzzle with AVX2 SIMD Acceleration.</title><link>https://slow-is-smooth.io/blog/solving-the-pandigital-puzzle-with-avx2-simd-acceleration/</link><pubDate>Mon, 21 Jul 2025 12:53:38 +0000</pubDate><guid>https://slow-is-smooth.io/blog/solving-the-pandigital-puzzle-with-avx2-simd-acceleration/</guid><description>&lt;h2 id="using-avx2-simd-instructions-in-c-to-accelerate-the-search-for-the-largest-1-9-pandigital-concatenated-product"&gt;Using AVX2 SIMD instructions in C++ to accelerate the search for the largest 1-9 pandigital concatenated product.&lt;/h2&gt;&#10;&lt;p&gt;If you&amp;rsquo;ve ever tackled &lt;strong&gt;Project Euler Problem 38&lt;/strong&gt;, you&amp;rsquo;re likely familiar with the hunt for the largest 1-to-9 pandigital number that can be formed by concatenating the product of an integer with &lt;code&gt;(1, 2, ..., n)&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Solving Project Euler 38 with MATLAB: The Vectorized Pandigital Blitz</title><link>https://slow-is-smooth.io/blog/solving-project-euler-38-with-matlab-the-vectorized-pandigital-blitz/</link><pubDate>Sun, 20 Jul 2025 19:19:31 +0000</pubDate><guid>https://slow-is-smooth.io/blog/solving-project-euler-38-with-matlab-the-vectorized-pandigital-blitz/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;&lt;em&gt;This post is part of a multi-language series exploring the problem of finding the largest 1–9 pandigital concatenated product. Check out the&lt;/em&gt; &lt;a href="https://slow-is-smooth.io/blog/solving-pandigital-multiples-with-c-and-length-based-pruning/"&gt;&lt;em&gt;C#&lt;/em&gt;&lt;/a&gt; &lt;em&gt;and&lt;/em&gt; &lt;a href="https://slow-is-smooth.io/blog/programmatically-finding-pandigital-multiples/"&gt;&lt;em&gt;Python&lt;/em&gt;&lt;/a&gt; &lt;em&gt;editions too.&lt;/em&gt;&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;h2 id="why-matlab"&gt;Why MATLAB?&lt;/h2&gt;&#10;&lt;p&gt;MATLAB might not be the first language that comes to mind for algorithmic problem solving, but its strength in matrix manipulation and vectorized computation makes it a powerful ally for concise, high-performance numeric routines.&lt;/p&gt;</description></item><item><title>Solving Pandigital Multiples with C# and Length‑Based Pruning</title><link>https://slow-is-smooth.io/blog/solving-pandigital-multiples-with-c-and-length-based-pruning/</link><pubDate>Sun, 20 Jul 2025 18:54:33 +0000</pubDate><guid>https://slow-is-smooth.io/blog/solving-pandigital-multiples-with-c-and-length-based-pruning/</guid><description>&lt;p&gt;&lt;em&gt;In this post, we’ll explore a C# implementation that finds the largest 1–9 pandigital concatenated product by mathematically pruning the search space based on digit lengths, rather than brute-forcing all possibilities.&lt;/em&gt;&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="1-the-pandigital-multiples-problem-recap"&gt;1. The Pandigital Multiples Problem Recap&lt;/h2&gt;&#10;&lt;p&gt;We seek the maximum 9‑digit number formed by concatenating the products:&lt;/p&gt;</description></item><item><title>Optimizing Pandigital Multiples in Python</title><link>https://slow-is-smooth.io/blog/optimizing-pandigital-multiples-in-python/</link><pubDate>Sun, 20 Jul 2025 18:53:29 +0000</pubDate><guid>https://slow-is-smooth.io/blog/optimizing-pandigital-multiples-in-python/</guid><description>&lt;p&gt;&lt;em&gt;In this follow-up post, we’ll transform our straightforward brute-force solution into a lean, mean, Pythonic machine, avoiding strings, pruning early, and utilizing bitmasks and vectorized data structures for clarity and speed.&lt;/em&gt;&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="1-integeronly-concatenation"&gt;1. Integer‑Only Concatenation&lt;/h2&gt;&#10;&lt;p&gt;Instead of building a string, we’ll assemble the concatenated product as an integer. We keep track of:&lt;/p&gt;</description></item><item><title>Programmatically Finding Pandigital Multiples</title><link>https://slow-is-smooth.io/blog/programmatically-finding-pandigital-multiples/</link><pubDate>Sun, 20 Jul 2025 16:41:53 +0000</pubDate><guid>https://slow-is-smooth.io/blog/programmatically-finding-pandigital-multiples/</guid><description>&lt;p&gt;&lt;em&gt;In this post we’ll go step by step through a clear, Python-based approach to solve the “concatenated pandigital multiples” problem. We’ll explain each part in simple terms, provide complete code examples, and ensure every detail is fully understandable—even if you’re new to programming.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Project Euler 38: Solving with Pen and Paper Like It’s 1899 🖊️</title><link>https://slow-is-smooth.io/blog/project-euler-38-solving-with-pen-and-paper-like-its-1899/</link><pubDate>Sun, 20 Jul 2025 16:40:36 +0000</pubDate><guid>https://slow-is-smooth.io/blog/project-euler-38-solving-with-pen-and-paper-like-its-1899/</guid><description>&lt;p&gt;In the age of compilers and cloud computing, it&amp;rsquo;s easy to forget how powerful logic and a pencil can be. Project Euler Problem 38 — finding the largest 1 to 9 pandigital number formed as a concatenated product — is typically solved with code. But what if we &lt;em&gt;couldn&amp;rsquo;t&lt;/em&gt; code it? Could we solve it by Hand?&lt;/p&gt;</description></item></channel></rss>