Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* 2025/26/2
* archívum


Linkek

* kalendárium
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C#
* D lang.
* Java
* Nim
* Nim2
  + exercises
* XC=BASIC
* old
  ◇C++, ◇Clojure, ◇Scala


[ edit | logout ]
[ sandbox | passwd ]

The largest prime number found so far

On October 21, 2024, it was announced (https://www.mersenne.org) that the largest prime number ever found had been discovered! The number is 2136,279,841-1, which consists of 41,024,320 digits. The previous largest prime was discovered 6 years earlier and was 16 million digits shorter.

Task

Determine the value of 2136,279,841-1, and write its digits to a text file (e.g. prime.txt) such that each line is 80 characters wide.

Fun fact

In Programming 1, we learned that the largest value that can be stored in an int variable (4 bytes) is 2_147_483_647, which is approximately 2.1 billion.

This value is also a Mersenne prime! Namely:

231 - 1 = 2,147,483,647

This was proven by the famous Swiss mathematician Leonhard Euler in 1772 (link).

Task: verify that 2,147,483,647 is indeed a Mersenne prime.

Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2026 April 25, 20:57