Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1: −
<div style="font-size:30px">'''LISTPRIMES(max,min,i)'''</div><br/>
+
<div style="font-size:30px">'''LISTPRIMES(max,min,Index)'''</div><br/>
 
*<math>max</math> is the upper limit.  
 
*<math>max</math> is the upper limit.  
*<math>min</math> is the lower limit and i is the <math> i^{th} </math> position of a prime number.
+
*<math>min</math> is the lower limit.
 +
*<math>Index</math> is the specified position of a prime number.
    
==Description==
 
==Description==
Line 9: Line 10:  
*But 6 is not prime, because 6 can be divided by 1,2,3 and 6. Such numbers are called composite numbers.  
 
*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.  
 
*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>.
+
*In <math> LISTPRIMES(max,min,Index)</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  
 
*<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.  
+
*And <math>Index</math> is the position of the prime number value. <math>Index</math> value is optional.  
*Suppose we are not giving the ith value, it will show all the prime numbers in given range.  
+
*Suppose we are not giving the Index value, it will show all the prime numbers in given range.  
 
*This function will give the result as error when
 
*This function will give the result as error when
# any one of the argument is nonnumeric.
+
# Any one of the argument is nonnumeric.
#<math> max < min </math> or <math>i </math> is the beyond the range number of prime numbers
+
#<math> max < min </math> or <math>Index </math> is the beyond the range number of prime numbers
 
#<math>max </math> or <math> min<0</math>.
 
#<math>max </math> or <math> min<0</math>.
 +
 +
==ZOS Section==
 +
*The syntax is to display the prime numbers list in ZOS is <math>LISTPRIMES(max,min,Index)</math>.
 +
**<math>max</math> is the upper limit.
 +
**<math>min</math> is the lower limit.
 +
**<math>Index</math> is the specified  position of a prime number.
 +
*For e.g.,LISTPRIMES(500,390,7)
    
==Examples==
 
==Examples==
writer
6,694

edits

Navigation menu