I have a large hexadecimal number that I'd like to factorize in two prime numbers. I am sure that this number can be built with two primes. It can't be done with the computer because it's a very large number, but I think there's a logical way to solve this problem because the hex number is a bunch of F's followed by zeroes with a 1 at the end (FFF...000...1). It also has one 7 and one E, but I guess that once I know how to tackle FFF...000...1, I could easily solve the same problem if the number has a 7 and an E. Any idea how to start with this problem?
2026-03-25 01:17:01.1774401421
Manual factorization of a large number in hexadecimal format
435 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
Let $n$ be the specified number.
Here's the plan . . .
Tedious, but straightforward.
Let's try it . . .
$804\;$hex$\;\text{F}$'s, followed by $1106$ hex $0$'s, is equal to $$(16^{804}-1)(16^{1106})=16^{1910}-16^{1106}=2^{7640}-2^{4424}$$ One hex $7$, followed by $1105$ hex $0$'s, is equal to $$(7)(16^{1105})=(8)(16^{1105})-16^{1105}=2^{4423}-2^{4420}$$ $300\;$hex$\;\text{F}$'s, followed by $805$ hex $0$'s, is equal to $$(16^{300}-1)(16^{805})=16^{1105}-16^{805}=2^{4420}-2^{3220}$$ One hex $\text{E}$, followed by $804$ hex $0$'s is equal to $$(14)(16^{804})=(16)(16^{804})-(2)(16^{804})=2^{3220}-2^{3217}$$ hence we have \begin{align*} n&= \left(2^{7640}-2^{4424}\right) + \left(2^{4423}-2^{4420}\right) + \left(2^{4420}-2^{3220}\right) + \left(2^{3220}-2^{3217}\right) + 1 \\[4pt] &=2^{7640} - \left(2^{4424}-2^{4423}\right)-2^{3217}+1\\[4pt] &=2^{7640} - 2^{4423} - 2^{3217} + 1\\[4pt] &=(2^{4423}-1)(2^{3217} - 1)\\[4pt] \end{align*} Maple says that $2^{4423}-1$ and $2^{3217}-1$ are both prime.