| Line 1: |
Line 1: |
| − | <div id="6SpaceContent" class="zcontent" align="left"> | + | <div style="font-size:30px">'''LISTPRIMES(max,min,i)'''</div><br/> |
| | + | *<math>max</math> is the upper limit,and |
| | + | * <math>min</math> is the lower limit and i is the <math> i</math>'th position of a prime number. |
| | | | |
| − | '''LISTPRIMES'''(max,min,i)
| + | ==Description== |
| | + | *This function is listing the set of prime numbers for the given set of numbers. |
| | + | *A prime number is a natural number, it can be divided, without a remainder, only by itself and by 1. |
| | + | *For e.g. the number 11 is a prime, because 11 is divided by 1 and 11 without any remainder. |
| | + | *But 6 is not prime, because 6 can be divided by 1,2,3 and 6. Such numbers are called composite numbers. |
| | + | *Also the number 0 and 1 are neither prime nor composite. |
| | + | *In <math> LISTPRIMES(max,min,i)</math>, gives the list of prime numbers between the range <math> max </math> and <math>min</math>. |
| | + | *<math>max </math> is the upper limit value and <math> min</math> is the lower limit value |
| | + | *And <math> i</math> is the position of the prime number value. <math>i</math> value is optional. |
| | + | *Suppose we are not giving the ith value, it will show all the prime numbers in given ange. |
| | + | *This function will give the result as error when |
| | + | *1. any one of the argument is nonnumeric. |
| | + | *2.<math> max < min </math> or <math>i </math> is the beyond the range number of prime numbers |
| | + | *3.>math>max </math> or <math> min<0</math>. |
| | | | |
| | where | | where |