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

I might have mistakes in my code, any help would be welcomed.
But compiling error is expected declaration or statement at end of input!!! Cant find out why.

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.

Please enter an integer: 9098
9103 is prime
0

in my main.cpp i prompt the user to enter any number and this function will run the following prime number after the user enter the number

this is the result and below is my function

//this is the cpp contain another function
#include <iostream>
#include <cstdlib> //for random functions

using namespace std;

#include "prime.h"
#inclu