The set {1, 2, 3, …} is known as the set of natural numbers, they are usually signed as N numbers. This tutorial is about prime numbers. So what are prime numbers? Let us take number 15, which could be represented as shown below. This is not a prime number.

The following program is giving error on line 7 and 9: the while loop does not seem to be working.

Number Genie

Features include base conversions, prime number identifier and non-prime number factorization, math encyclopedia of common math constants, and the usual special number characteristics as told by our Number Genie.

Attached Images

ng1.png
(391.5 KB)

ng2.png
(367.4 KB)

ng3.png
(373.4 KB)

ng4.png
(372.8 KB)

Here is the prompt for my assignment

Your third assignment is to write a C++ program that will print out the primes numbers between 2 and 100. However, you must use two functions in your program.

I'm writing a prime number finder. Mathematically, it is faster to, instead of doing for (unsigned long i = 2; i < number/2; i++) it's a lot faster, and still just as effective, to do for (unsigned long i = 2; i < sqrt(number); i++)

But it's not working.

I have a problem with writing a bash script and hope that someone can help me with this.
I have written a few smaller scripts in bash before, so I'm not totally new, but there's still lots of space for improvement.

hello,
I'm trying to manipulate some numbers in a bash script as I don't know any better.
I have a problem, that with raising a number to the power of another number the second number must be an integer and I want it to be 0.0208 or something
as in
p=`echo "($y^2/$x^2)^1/$f" | bc -l`
what's the best way to get around this ?

cheers

zem
[edit]
ok I found something on the wikipedia about

I have to write a program in bash and I understand logically how to do it I just cant get in into code. The problem is this "Write a program called "multiply" to get two numbers from the user and calculate the first number times the second number and show the result.
You are only allowed to use loop and addition operator(+).

You think you are good with numbers? Well, let's check...

Exact Number is a logical arithmetic game with numbers.

The goal is to calculate the wanted number from given numbers by using arithmetic operations and get to a higher level.

There are three modes (easy, medium and hard).

Available in three languages (English, German, Macedonian)