From University Lecturer to Chief Academician

Chapter 91 Looking for Mersenne primes? Come on!

Zhang Zhiqiang made it clear that he wanted to join the research, and issued a "military order" sonorously and forcefully, saying that he would definitely solve the manpower problem, and went to the computer laboratory vigorously.

After leaving the complex, the firmness on his face disappeared without a trace.

He has no idea.

Although the "Military Order" is strong and powerful, he is only an associate researcher in the computer laboratory, saying that he is looking for help from graduate students and doctoral students, but he is not a doctoral student or a graduate tutor, and students will not listen to him, he said. It doesn't necessarily work, or it definitely doesn't work.

In addition, this kind of research definitely has no funding, it is just an idea of ​​Wang Hao, and it is really difficult to attract people without funding.

Doctoral students and postgraduates say they are very busy, but they all have to study, write papers, and have other jobs to do.

"Will someone come to help?"

Zhang Zhiqiang was very uncertain, "Well, just try it out, if it doesn't work, then pull Luo Dayong, Luo Dayong and I, two people!"

Go, definitely still go.

Although I don't have much confidence in my heart, I still have to go and give it a try.

Zhang Zhiqiang still went to the computer laboratory, reached the fifth floor of the laboratory building, glanced at the doors of several workshops, found the one with the most people, and went in. There were six or seven people busy inside.

He took a closer look and found that there was no doctoral supervisor, and they were all students, so he breathed a sigh of relief.

If there is a doctoral supervisor, it would be awkward to ask the other party's students to help write the code. Even if the students agree, it seems to be taking advantage of the other party's position to oppress the students to work.

He sincerely just asks students to help, do it if they want to do it, and forget it if they don’t want to, instead of asking students to do something.

After turning around and looking carefully, Zhang Zhiqiang stood at the door of the workshop, glanced outside the corridor, and then closed the door.

At this time, everyone in the workshop looked over with doubts.

Most of them knew Zhang Zhiqiang and knew that he was a newly promoted associate researcher in the laboratory, but because he had no students with him and rarely worked in the laboratory, almost no one knew him well.

Zhang Zhiqiang opened his mouth, clapped his hands and said, "Everyone, excuse me, I have something to say."

"I now have a job that requires people to write code together. It is a relatively complicated program. I want to ask a few people to help. Do you want to participate?"

Most of the students lowered their heads and continued with what they were doing.

Zhang Zhiqiang continued in embarrassment, "It's not for nothing." He gritted his teeth cruelly and said, "Everyone will finish writing this program together. I will pay for it myself. Everyone will give subsidies and invite everyone to dinner."

Some students pointed to their ears and listened, but lost interest immediately after listening.

Subsidy after the program is written?

This kind of long-term promise, and the uncertain salary is really hard to attract people, and it doesn't matter what kind of dinner and so on.

Those students who were still looking up had a look of disdain in their eyes.

Zhang Zhiqiang took a deep breath, thinking that he should be more sincere, "That's right. I probably don't understand this algorithm, and it has something to do with finding Mersenne prime numbers."

"Mersenne primes, you all know? So far, only 51 have been found. We have designed a program to assist in the search for Mersenne primes. If you can find the next Mersenne prime, you will receive a bonus of 100,000 US dollars. Think about it, when the time comes, you I also participated in the project, took out a small part, divided one cent, and the money is quite a lot!"

What Zhang Zhiqiang said is indeed very sincere and from the heart, because he is not the leader of the research, and it is impossible to make a decision for Wang Hao. He really found the Mersenne prime number, and with a bonus of 100,000 US dollars, he can only do it. Say 'take a small portion out' and score a point.

This sentence made the students who looked up just now lower their heads. They did not say a word, but they were already contemptuous in their hearts. "Just you? Return the Mersenne prime? And design a program to find the Mersenne prime?"

"Let's dream!"

"Joining this job is really a waste of time!"

"Promises will not be promised, and we have no experience? Mersenne prime numbers, can you find them if you want? You might as well buy a lottery ticket, and there is still a one-in-a-million chance of winning."

Zhang Zhiqiang stood at the door, so embarrassed that he was a little pitiful. He still said weakly, "This research is from Professor Wang Hao of the Faculty of Science. Don't think too much about it. I just came to ask..."

"Shua!"

Two doctoral students in the front row suddenly stood up, and one of them immediately asked, "Is it the research of Teacher Wang Hao?"

"Is it really Teacher Wang Hao?"

Zhang Zhiqiang was stunned, "Yeah? Wang Hao asked me..."

"I join!"

"I'll join too!"

The next few students also reacted, and hurriedly raised their hands to sign up, "I will join too, Mr. Wang Hao's project, if you help, you can help."

"The last time Mr. Wang Hao came to the lab, what he told us was really useful, so I will join..."

"..."

Several students gathered around and rushed to sign up, Zhang Zhiqiang was dumbfounded, what the hell... I just mentioned Wang Hao earlier!

...

Computer lab, small conference room.

More than a dozen doctoral students and graduate students gathered together.

Wang Hao stood at the front of the meeting room, surprised by the dozen or so people in front of him, he couldn't help giving Zhang Zhiqiang a thumbs up, and the meaning in his eyes was almost like, "I really have you, and I can find a dozen to help of."

Zhang Zhiqiang lowered his head slightly in embarrassment.

Wang Hao cleared his throat and said, "That's right. I have a program to write, but I feel that writing it by myself is too complicated, and I need to ask someone to help me in part. In this way, I am not in the computer laboratory, and I will not let you help for nothing. .”

"With so many of us writing this program, three days is enough. Each of us will share a part of the work. After completion, one thousand yuan per person should be regarded as a subsidy."

This is also an opportunity for students to earn extra money.

Most doctoral students and postgraduates do not have high incomes, and it is also attractive to spend time and earn more money.

After hearing Wang Hao's words, a student immediately said, "Mr. Wang Hao, you don't need to pay, I'm here to help."

"Do me a favor and write some code, what's the money back?"

"No money! No money!"

Zhang Zhiqiang muttered in a sour voice, "I just said I paid for it out of my own pocket, but you don't have that attitude."

Wang Hao shook his head and said firmly, "If you don't want money, I can't let you do it. This matter must be settled first."

Now no one said anything more.

Next, Wang Hao faced the blackboard and drew a frame diagram, drawing it step by step, and made a mark on each step, and then began to explain in turn, "Let's take a look at this frame diagram, which is The overall structure of the program."

"If you are interested, you can study it yourself after the work is completed. It may be helpful for your understanding of the structure and algorithm."

"Now I mainly talk about what needs to be done. Starting from the first step, it is very simple. Check the primality, and then output the number. There should be nothing to say."

"Next, compare and filter, compare with this sequence..."

He explained patiently.

The whole program is to use the effective and irrelevant carry algorithm to analyze the 'exponent p as a prime number' and 'the Mersenne number corresponding to p', which can be roughly divided into more than 20 steps, and each step requires a program.

Finally, link all the programs together to achieve the required functions.

Some of the steps are relatively simple, and it can be said that there is no difficulty. For example, the output of the digital primality detection in the first step, "Primality Detection", is to put it bluntly to check whether the number is a prime number. It is not difficult for undergraduates, but in programming On the other hand, try to simplify the amount of calculation as much as possible.

After Wang Hao finished explaining everything and assigned tasks to everyone, a group of people went back to work.

Wang Hao and Zhang Zhiqiang also stayed in the computer lab. They simply worked in Zhang Zhiqiang's office, and they had to complete the code of the most complicated part of the framework together.

On that day, Wang Hao and Zhang Zhiqiang worked together until 9:30 in the evening, and went home to sleep. The next day, apart from going to class normally, they went to the computer laboratory to write codes.

Because the students responsible for writing codes are all in the laboratory, Wang Hao will sit in the laboratory. There will always be students who encounter some difficulties or have other related questions. He will help to think of solutions or explain them.

The next afternoon, Chen Qinghua came to the laboratory again, saw Wang Hao and asked, "I heard that you asked some students to help write a program? I asked about the program, but they didn't explain clearly."

"A program for analyzing Mersenne numbers." Wang Hao briefly explained.

"Mason number? What to do?" Chen Qinghua was puzzled.

Wang Hao said, "It is to analyze Mersenne numbers. I want to use the analysis results to find Mersenne prime numbers."

"..."

Chen Qinghua pursed his lips and remained silent for a while, "Come on!" He walked away with his hands behind his back.

Not long after Chen Qinghua left, another professor came over. It was Professor Qi Xiao, who was also a doctoral supervisor. There were two students who helped write the code, and they were also doctoral students under Qi Xiao's supervision.

Qi Xiao and Wang Hao were not familiar with each other, so he asked Zhang Zhiqiang, "What did you write this program for? Does it take a long time? I'm afraid it will delay the progress of the students."

"Won't."

Zhang Zhiqiang said with certainty, "I estimate that it will take at most three days, and it won't take long. I guess it will be done sooner, and it will be finished tomorrow."

"That's good." Qi Xiao didn't care after hearing this, and continued to ask curiously, "I heard that it is related to Mersenne prime numbers. Is it Professor Wang's research on prime numbers?"

"Find Mersenne prime numbers." Zhang Zhiqiang said five words very straightforwardly, "It is to design a program to find Mersenne prime numbers."

"..."

Qi Xiao's reaction was the same as that of Chen Qinghua's. He also pursed his lips for a long time without saying a word, leaving only one sentence, "Come on."

Then, go.

Looking for Mersenne primes? What an international joke! When I don't understand Mersenne primes?

The world has only found fifty-one until now, and I don’t know how many years have passed to find the next one. Design a program and want to find it?

Dream it!

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like