answersLogoWhite

0

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

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Math & Arithmetic

Shell program to generate prime number between 1 and 50?

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.


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.


How do you write a shell Program to generate the first 25 prime numbers?

echo enter a range read rng echo 2 j=3 while test $j -le $rng do i=2 x=`expr $j - 1` while test $i -le $x do if [ `expr $j % $i` -ne 0 ] then i=`expr $i + 1` else break fi done if [ $i -eq $j ] then echo $j fi j=`expr $j + 1` done


Shell script for multiplying two numbers?

#!/bin/Bash echo "Enter the two numbers to be Multiplied:" read n1 read n2 answer=`expr $n1 \* $n2` echo $answer


Bottom Bracket what do the numbers mean?

Bottom bracket numbers typically indicate the measurements and specifications of the bottom bracket used in a bicycle. These numbers often include the shell width (in millimeters), the threading type (like BSA or Italian), and the diameter of the bottom bracket shell (such as 68mm or 73mm). Additionally, it may specify the type of spindle (like square taper or external) and the compatible crankset. Understanding these numbers is crucial for selecting the correct bottom bracket for a bicycle frame and crankset compatibility.

Related Questions

Shell program to generate prime number between 1 and 50?

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.


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


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

k


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 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.


Shell script to generate that listens to a port over the internet?

You wouldn't use a shell script to do this. Any program could listen on a port by connecting or binding to a socket address. There are some utility languages such as Perl that could connect to a port and listen, but the listening would also be a function of what you are listening for.


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.


How do you create a shell in unix?

If you are asking about a shell script, just create a text file with the commands you want to execute inside it. Then, make the file executable and readable and you have a shell script file. A shell program is more complicated; you need to support the user features that most users would expect a shell program or shell interpreter to do. I would suggest studying the source code of a current shell program to see how to go about implementing one of your own.


How do you run a Unix program?

By typing its name into the shell


How do you print the current directory in shell program?

pwd


Can a shell be added to unix?

Certainly (yes). A shell is just a user interface program and any user can create their own if they are so inclined. If other users wish to use this new shell program (particularly as a login shell) it can be added to the /etc/shells list.


What is a mini shell program used for in Unix?

The mini shell program is used in Unix as a programming software. It is a redirected and streamlined approach at creating variables, commands, and tokens.