Matlab code for PRIME SQUARE REMAINDER

1 Ansicht (letzte 30 Tage)
Yattin Gaur
Yattin Gaur am 19 Nov. 2019
Kommentiert: Walter Roberson am 20 Nov. 2019
Let pn be the nth prime: 2, 3, 5, 7, 11, ..., and let r be the remainder when is divided by .
For example, when n = 3, p3 = 5, and = 280 ≡ 5 mod 25.
The least value of n for which the remainder first exceeds is 7037.
Find the least value of n for which the remainder first exceeds .
  5 Kommentare
David Goodmanson
David Goodmanson am 20 Nov. 2019
thanks Walter, and could you change it to p_n on the second line?
Walter Roberson
Walter Roberson am 20 Nov. 2019
Done.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by