answersLogoWhite

0

There are several shell programs available for download on the internet that will generate prime numbers. The best way to find a Prime number is through calculation, however.

User Avatar

Wiki User

11y ago

What else can I help you with?

Continue Learning about Math & Arithmetic

Shell program to generate the prime numbers betwee 1 to 50?

2,3,5,7,9,11,13,17,19,23,29,31,37,39,41,43,47,49


Write a shell program to find given no is even or odd?

The pseudo code would be as follows (you figure out the syntax) 1) Prompt the user to enter a number 2) If entered number is alpha, quit program after displaying message that the user ended the program. 3) Otherwise, find Modulo 2 of the entered number. This is a fancy way of saying "find the remainder when the number is divided by 2) 4) If Modulo 2 is zero, the number is even, otherwise odd 5) Display message showing if the entered number was Even or Odd 6) Branch back to step 1


Why use scale2 for finding the area and circumference using shell program?

Using scale2 in a shell program for calculating the area and circumference allows for greater precision in mathematical computations, particularly when dealing with floating-point numbers. It helps ensure accurate representation of decimal values, which is crucial for precise results in geometric calculations. Additionally, scale2 simplifies the process of handling calculations involving π (pi) or other constants, making the code cleaner and more efficient. Overall, it enhances the reliability of the results generated by the shell program.


write a shell program to find out the avogadro number?

cho "Enter A Number :" read n r=n s=0 rem=0 while [ $n -gt 0 ] do rem=$(($n%10)) s=$(($s+$rem*$rem*$rem)) n=$(($n/10)) done if [ $r -eq $s ] then echo "The Number is Avogadro" else echo "The Number is Not Avogadro" fi


The Roman numeral at the top of a column on the periodic table indicates the number of what in the outer shell?

electrons

Related Questions

Shell program to generate the prime numbers betwee 1 to 50?

2,3,5,7,9,11,13,17,19,23,29,31,37,39,41,43,47,49


What is Shell in shell?

The 'shell' is a user interface program that interfaces between a user of the system and the Operating System. It is the user interface.


Write a Shell program to find the smallest number from a set of numbers?

k


Shell program to find the smallest digit of a given number?

syntax error


What is shell in os?

The 'shell' is a user interface program that interfaces between a user of the system and the Operating System. It is the user interface.


What is the Difference between c and shell program execution?

The shell interprets the script, while the C-compiler generates a binary executable.


What is the difference between interactive use of shell command and running a shell?

In an interactive shell session the shell program waits for the user to type in a command. When receiving a command the shell program will then attempt to locate it and process (execute) the command. You are interacting with the shell. Running a shell file requires a pre-stored series of commands stored in a file. Unless the shell program you are running is interactive then the shell executes each command in sequence, without involving the user at all.


Write a Shell program to find the sum of cube of individual digits of a number?

no thanks


What is the difference between shell sort and merge sort?

shell uses an odd number,merge uses an even number?


Shell program to find the sum of cube of individual digits of a number?

Shell problems are programs that can be run to find out information about numbers. The problem can help find an even or odd number, or what the sum of a cube is.


What is kernel and shell in unix?

The kernel The kernel is the hub of the operating system: it allocates time and memory to programs and handles the filestore and communications in response to system calls. The shell The shell acts as an interface between the user and the kernel. When a user logs in, the login program checks the username and password, and then starts another program called the shell.


Write a program in shell script to display odd number from 0 to 100?

seq 1 2 99