Matlab code for PRIME SQUARE REMAINDER

조회 수: 3 (최근 30일)
Yattin Gaur
Yattin Gaur 2019년 11월 19일
댓글: Walter Roberson 2019년 11월 20일
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
David Goodmanson
David Goodmanson 2019년 11월 20일
thanks Walter, and could you change it to p_n on the second line?
Walter Roberson
Walter Roberson 2019년 11월 20일
Done.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Number Theory에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by