Primespiral

버전 2.0.0.0 (205 KB) 작성자: Giuseppe Cardillo
Play into the world of prime numbers!
다운로드 수: 444
업데이트 날짜: 2018/3/15

Primespiral is a function to explore the distribution of prime numbers arranged into a spiral pattern.
The well-known Ulam spiral and the variant developed by Robert Sacks,
the Sacks spiral, show interesting geometric patterns in the positions of primes.
Syntax: primesout=primespiral(t)

Inputs:
t - is an integer number. The spiral will be plotted between 0 and t
If t is omitted, it will be set to 3571 (between 0 and 3571
there are 500 prime numbers).
Outputs:
primesout - the primes of the choosed family, between 0 and t.

The function will ask if you want to use the Ulam, Sacks, Vogel or Archimede spiral.
Then it will ask if you want to highlight a particular prime family.

Outputs:
The primes of the family you choosed between 0 and t

Created by Giuseppe Cardillo
giuseppe.cardillo-edta@poste.it

To cite this file, this would be an appropriate format:
Cardillo G. (2014) Primespiral: Play into the world of prime numbers!
http://www.mathworks.com/matlabcentral/fileexchange/46025

인용 양식

Giuseppe Cardillo (2024). Primespiral (https://github.com/dnafinder/primespiral), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2014b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Number games에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
2.0.0.0

each plot contains two boxes with descriptions of chosen spiral and prime family
Github link

1.6.0.0

The function is more compact and rational.
Archimede spiral was added (to shows that prime numbers greater then 7 have 1, 3, 7 or 9 as last digit)

1.5.0.0

some minor bugs correction and new primes families added

1.4.0.0

some other primes families were added

1.3.0.0

Ulam Spiral added;
more simplex algorithm

1.2.0.0

bug correction in Dihedral primes computation; minimal primes added

1.1.0.0

change in help section to correctly cite the file

1.0.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.