The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.
i know how to write the programe but i need the formola(functio n)of GCD,and how i can know if it is a prime number or not??
Originally posted by sicarie
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.
Please don't use more than one thread for your question. It doesn't speed up your answer, and it doesn't increase the accuracy/helpfulness of the answer; all it does is confuse people that would normally be helping you. If all the posts on a topic are in one thread, it is much easier for anyone to see what progress you have made and, thus, give relevant help.
The simplest primality test is as follows: Given an input number n, we see if any integer m from 2 to n − 1 divides n. If n is divisible by any m then n is composite, otherwise it is prime.
Comment