Skip to main content
  • Home
  • Library
  • Read
    • Popular
    • Charts
    • Browse
    • Categories
    • Wikis
    • Glossary
  • Request
  • Activity
  • Leaderboard
  • Help
Our Apps
  • DaoSearch
  • Narratorr
Social
  • Discord
  • Patreon
The Scholar's Grind
Chapter 130

Mining Software

2,006 words 7 min read 4 views 3mo ago Source ​
Skip to the end of the chapter
Prev
Next

What use was factoring prime numbers?

Well, of course, it could be used to attack RSA encryption systems.

Naturally, that was illegal, and Xiao Yi certainly would not do such a thing.

However, this method had another use: mining Bitcoin.

As the first blockchain cryptocurrency on Earth, Bitcoin used a very simple mining method: factoring prime numbers.

The mining process involved mining zones. Each zone contained a certain amount of Bitcoin, and miners dug and dug within it. If one miner uncovered a key value—the factor they were searching for—that miner could receive the reward for the block. Of course, that was solo mining. With good luck, one might strike it rich in a single try—but the odds of winning were lower than winning a lottery jackpot.

Another mining method was a mining pool, where everyone mined together and received a certain amount of Bitcoin according to the contribution each miner made during the process.

Their contribution was evaluated according to the computing power they provided.

Naturally, the more computing power one provided, the greater the contribution, and the more Bitcoin one received in the end.

The technical term for it was Proof of Work (PoW).

That was why miners' rigs were fitted with rows upon rows of graphics cards.

As for why they used graphics cards, it was because their computing power was extremely strong—far higher than that of CPUs.

Besides higher computing power leading to greater mining contributions, there was another factor: algorithmic advantages.

By continuously optimizing the algorithms used for mining, one could steadily improve mining efficiency—that was, increase one's workload during the process of mining a block—and thereby earn more Bitcoin in the end.

And now...

"After combining the circle method with Xiao's expansion, it seems to have incredibly high efficiency in factoring prime numbers..."

"Most importantly, the factoring process is extremely simple."

Xiao Yi narrowed his eyes.

The circle method itself could be used to factor prime numbers, though it was somewhat less efficient than sieve methods. However, Xiao's expansion already contained the principles of the classification sieve.

Thus, by combining the two, he had inadvertently created an especially convenient method for factoring prime numbers.

Why was it convenient?

Because its factoring process was simple. In other words, once converted into a computer program, it would consume very little computing power while running—at least compared with other prime factorization programs.

That would indirectly increase the workload in mining, thereby increasing mining speed.

At that thought, Xiao Yi raised his brows.

Previously, aside from planning to build a blockchain, he had also intended to make mining software to get some practice.

Mining software did not require building a mining farm. He only needed to earn transaction fees from the miners.

That suited Xiao Yi perfectly. After all, he did not have the time to set up a huge number of mining rigs and maintain them. For all he knew, the power bureau might notice his excessive electricity usage and shut down his mining farm outright.

He had heard that many mining farm owners in China had gradually moved their farms overseas for precisely that reason.

Of course, mining was not completely banned within China. It mainly depended on the regulations of different regions.

In short, becoming a mining farm owner himself was definitely not feasible. The best approach was to develop the algorithm and let other miners mine for him while he earned commissions. That would obviously be much more comfortable.

And he could make money off mining farm owners all over the world.

Hmm...

"Let's do it!"

Xiao Yi's gaze hardened as he began writing code.

After so many days of research and study, he had developed a fairly deep understanding of programming. Writing mining software was not particularly difficult either.

The core component was the mining algorithm.

Of course, now that he had worked out the mathematical principles, developing the algorithm was not difficult for Xiao Yi.

However, since the algorithm was the core of his software, he also needed to write a protection program to prevent it from being copied by others.

Algorithms could not be patented, so he could only protect them carefully.

Besides the core algorithm system, he also needed a user system.

That was simple—just account management. He could directly copy and paste one from GitHub, but Xiao Yi decided to write one himself to sharpen his skills.

Hmm... Besides those parts, the most important thing was a payment system.

After looking into the fee structures of various mining programs, Xiao Yi ultimately decided to charge two types of fees. The first was a software usage fee: fifty yuan per mining rig.

He had heard that the largest mining farm in China was the Bitmain Mining Farm in Sichuan Province, with hundreds of thousands of mining rigs. That meant if the entire farm used his algorithm, it could bring him tens of millions in revenue.

Across the entire world, there might be tens of millions of mining rigs, which would mean hundreds of millions, perhaps even over a billion, in revenue.

Hiss...

At that thought, Xiao Yi could not help having the same thought Yuri had at the beginning of the movie Lord of War: The question was, how could he get every mining farm owner to use his software for mining?

Ahem. Better not daydream yet.

Besides the software usage fee, there would also be a mining commission. Like other software, he would take one percent of mining proceeds.

Finally, there was the server system. Since accounts were involved, the system naturally needed servers.

That would also maximize the security of his algorithm and prevent it from leaking.

Last of all came distributed computing power scheduling. Once mining farm owners logged into his software and began mining, he would be able to call upon the computing power of their mining rigs and use his algorithm to mine.

"Hmm... This is actually pretty complicated."

After considering all the functional components the software required, Xiao Yi could not help sighing. Nothing was ever simple.

And there was another key issue: once the software was finished, how was he supposed to promote it?

That was truly difficult.

Hmm...

He could not exactly shout from his Weibo account, "I made mining software! Everyone, come use it!"

Better not. That would look too much like advertising on Weibo.

He still cared about his reputation.

Forget it. No need to think so much. Things would work themselves out when the time came.

He should write the software first.

Thus, over the following days, Xiao Yi devoted himself to the mining software, striving to finish it before returning to China.

Time passed quickly, until about a week later.

"Xiao Yi, I've finished organizing my paper. Come take a look. Are there any other problems?"

Xiao Yi arrived at Zhang Yitang's office, where Zhang Yitang picked up a printed paper from his desk and handed it to him.

Xiao Yi took the paper and began reading it.

Hmm...

It had to be said that different mathematicians really did write papers differently. Zhang Yitang preferred to lay out all the conditions and the complete outline of the proof first, then derive and prove everything step by step in the remaining sections.

Terence Tao, on the other hand, tended to let the train of thought unfold alongside the progress of the proof.

Different writing styles naturally produced different reading experiences.

But...

For Xiao Yi, there was no difference at all. He could understand either way.

So he read through it step by step, eventually finding a few typos as well as some citation errors.

When Zhang Yitang discovered that his paper still contained those mistakes, he could not help feeling a little embarrassed. With Xiao Yi's help, he corrected the paper.

"It really has to be you young people."

After revising the paper, Zhang Yitang could not help sighing.

He was already finding it somewhat difficult just to organize a paper.

In contrast, Xiao Yi not only read papers quickly, but also identified mistakes with remarkable precision.

He had heard that papers Xiao Yi submitted to journals had never once been returned by editors for revisions to typos or unclear sections. On that point alone, Zhang Yitang felt inferior.

Xiao Yi did not know what to say, so he merely smiled. "I'll grow old too someday."

Zhang Yitang shook his head. "I probably won't live to see that day."

"Alright, enough of that. Let's upload the paper now."

He then logged onto arXiv and began uploading the paper.

Of course, since they were publishing jointly, there was an option to add authors during the submission process.

They were co-first authors. And because Xiao Yi's initials came before Zhang Yitang's in alphabetical order, Xiao Yi's name was listed first.

But since they were both first authors, there was not much difference.

After he clicked confirm, the paper entered the system's automatic review process. It would likely be published before long.

"It is finally done."

Zhang Yitang let out a long breath, then smiled at Xiao Yi. "There should basically be nothing else to do next... Hmm, perhaps the mathematics community will be a little lively for a while."

Still, it probably would not be as lively as when Xiao Yi had published his paper on Xiao's Polynomial Expansion some time ago.

After all, following Xiao's Polynomial Expansion, the proof of the Siegel-Zero Conjecture was essentially on a countdown already. They had merely moved that countdown forward.

"Also, we may need to give some talks later. Would you like to come along?" Zhang Yitang asked.

Xiao Yi froze. More talks?

He immediately waved his hands. "No, no. I already gave two talks last month. Please let me rest for a while. You can go."

Zhang Yitang immediately laughed. Giving talks was indeed tiring, but if the talk concerned a proof of the Siegel-Zero Conjecture, it could be called an honor.

Yet this kid was unwilling?

Then Zhang Yitang suddenly paused, recalling what Xiao Yi's two talks last month had been about.

The Twin Prime Conjecture and Xiao's Polynomial Expansion...

Sorry for disturbing you.

The Siegel-Zero Conjecture really was nothing much, especially when it had only been completed on the basis of Xiao's expansion...

Feeling a little awkward, Zhang Yitang decided to change the subject. "What have you been researching these past few days? Combining the circle method with Xiao's expansion?"

"Uh..." Xiao Yi thought for a moment before saying, "I'm writing Bitcoin mining software."

"Writing... writing what?" Zhang Yitang froze, not quite processing it.

Xiao Yi had no choice but to repeat himself.

This time, Zhang Yitang finally understood.

He looked at the young man before him in disbelief.

Being so proficient in mathematics was one thing, but he actually had the energy to develop himself in computing as well?

"Could it be that your software was written using the classification sieve?" he could not help asking.

Xiao Yi answered, "Hmm... It does contain some principles of the classification sieve. It is more or less a byproduct of my research over the past few days. It is quite effective for factoring prime numbers."

A byproduct...

Zhang Yitang's eyelid twitched.

He did not ask further, because he knew that this so-called "byproduct" was probably the core mathematical principle behind the software.

After thinking for a moment, he asked, "How is the software coming along? Have you encountered any problems?"

"Not really." Xiao Yi waved his hand.

He might have been a little unpracticed at first, but as he wrote, he gradually found his rhythm.

"It's just... I'm thinking about how to promote this software. It feels a little troublesome."

Xiao Yi was still rather troubled by that issue.

However, Zhang Yitang said, "If that's the problem... I happen to know a Chinese boss who specializes in mining farms. His mining farm seems to have more than thirty thousand mining rigs, and it is considered quite large even within China."

"I can introduce you to him."

Xiao Yi immediately froze upon hearing that.

Something like that could happen?

End of Chapter
PrevPreviousNext
NovelSummaries

Before you continue

How was this translation?

Explore the wiki

Xiao Yi
Terence Tao
Twin Prime Conjecture

Comments

No comments yet.
AboutStatsAPIChangelogStatusContactPrivacyTermsDMCA
© 2026 RandomTranslator·v3.28·RSS