Heyas

Its been a while since i've done some math,
so out of curiousity and 'fun' i wanted to write a bash script doing that.

AFAIK: A prime number is defined by any number that is only dividable by 1 or itself.
AFAIK: Bash works only with integer numbers, which uses no coma seperation.

Prime Numbers are not EVEN
So at first a think of a function that helps to me skip every even number

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.

Hi all.
I really need help with Verilog.
Our lecturer has restricted to use if/else and etc..

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

PlusFreak is an addictive math and time killer game which involves only number addition!

New member here, can't paste any link. In order to play, please go to Play Store and search for "PlusFreak".

How To Play?
------------------------
1. You are given a random number.
2. Just simply plus from number 1-9 until a sum equivalent to the given random number.
3.

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.

PlusFreak is an addictive math and time-killer game which involves only number addition!

App Link: https://play.google.com/store/apps/details?id=com.mstudio.plusfreak

How To Play?
------------------------
1. You are given a random number.
2. Just simply plus from number 1-9 until a sum equivalent to the given random number.
3.

I have a similar problem, I installed Centos 6 on a box called genie. From another box I want to connect to genie using Xnest. On genie I have edited /etc/gdm/custom.conf, I have also edited gdm... [by PBrimacombe]

So i made a simple prime number finder for the numbers between 3 and 200. It has to use a boolean variable, just fyi. No errors occur. output is:
The prime numbers between 3 and 200 are:
3
5
7

why does it not keep going? I have drawn it out on paper time and again and cannot find my logic error.