answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Shell program to generate the prime numbers betwee 1 to 50?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.