Code covered by the BSD License  

Highlights from
PrimeSpiral

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 36.7 KB File ID: #46025
image thumbnail

PrimeSpiral

by

 

25 Mar 2014 (Updated )

Play into the world of prime numbers!

| Watch this File

File Information
Description

 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: 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).
  
  The function will ask if you want to use the Sacks or the Vogel 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

Required Products MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
27 Mar 2014

change in help section to correctly cite the file

28 Apr 2014

bug correction in Dihedral primes computation; minimal primes added

Contact us