<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Number-Theory on Aakash Ghosh</title><link>https://ghoshaakash.pages.dev/tags/number-theory/</link><description>Recent content in Number-Theory on Aakash Ghosh</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 12 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ghoshaakash.pages.dev/tags/number-theory/rss.xml" rel="self" type="application/rss+xml"/><item><title>Project Euler #3: Largest Prime Factor</title><link>https://ghoshaakash.pages.dev/posts/project-euler-003/</link><pubDate>Sun, 12 Apr 2026 00:00:00 +0000</pubDate><guid>https://ghoshaakash.pages.dev/posts/project-euler-003/</guid><description>&lt;h2 id="problem">Problem&lt;/h2>
&lt;p>What is the largest prime factor of the number $n = 600851475143$?&lt;/p>
&lt;h2 id="key-observation">Key Observation&lt;/h2>
&lt;p>If $p$ is the smallest prime factor of $n$, then $p \leq \sqrt{n}$. So we only need to trial-divide up to $\sqrt{n}$. After removing all such small factors, whatever remains is the largest prime factor.&lt;/p>
&lt;p>For $n = 600851475143$, we have $\lfloor \sqrt{n} \rfloor = 775146$, so we need to check at most ~387,000 odd numbers — trivial for a computer.&lt;/p></description></item></channel></rss>