Summary: I am new to Java and I am working on a program where a user enters an integer(n) and then the first prime number larger than the integer(n) is calcula...
Summary: I am supposed to write a function in MIPS that determines if a number is prime. The function should pass the number to be judged as an argument (throu...
Summary: Am i missing something here: #include "primes.h" /*how to linkto main.c*/ int is_prime(int n) { int k; int limit; if (n == 2) return 1; if (...
Summary: hi people i am having a great problem in vb.net while trying to make a program about prime numbers. is there is any 1 who will provide me the code. th...
Summary: Hi everyone, I should find prime numbers! its so easy! but the point is how the program will looks when you cannot use arithmetic operators!! (except...
Summary: Hi can any one help me with this code to "Write a program to determine if the sequence of numbers 11,101,1001,10001…. are all prime numbers up to a...
Summary: I don't know 9/10 of C++, and the other 1/10 is all vague (thank the horrid professor). This isn't for a course, I'm doing this on my own. What I'm...
Summary: i have a problem using java to create a program to determine if it is a prime or not. And also a palindrome code. Can you help me with this? ran ...
Summary: 1 - funcion primes to print prime #'s of an interger, num, greater than 1 Having some issues plz help ---------------- #include using std:cout; usin...
Summary: need to create a loop to calculate the number of prime factors of any given number. basically i have tried to make a loop using modulus to calculate w...
Summary: Hi M2 There probably are thousands of possible solutions, especially if the number extends into 3 or 4 digits. In the aforementioned quiz, the contes...
Summary: What is wrong with my code? i keep getting the "Invalid operand to binary" on line "var1=var1-1;" please help me solve this. this is a very simple cod...
Summary: I wrote a program to find prime numbers just for the heck of it, and soon realized that when the number gets beyond the limit of the long data type, t...
Summary: I'm having trouble with this program. I'm required to use the seive of Eratosthenes to generate a list of all prime numbers between 2 and 1000. And I ...
Summary: this c++ program is supposed to print the prime numbers between 1 and 1000 (it's just set to 100 here). I didn't want to make it this way, but that i...
Summary: Having problems with a program. I am suppose to write a program that prints out n prime numbers, whatever is inputed. I have to use a file prime.c:...
Summary: This program has been killing me, can someone assist me with it.. Here are the Specifics: 1) Create an array with all elements initialized to 1(true...
Summary: It would appear that the objective of the assignment is to generate a list of prime numbers beginning with succesive prime numbers in each new list. ...
Summary: //There is a program that im working on that needs to have multiple subprograms; I need as much //help as possible. //*Somehow they need to be direct...
Summary: Can someone please tell me what is wrong with this VB code? It's supposed to calculate prime numbers. When I go through it maunually, it works, but it...
Summary: I have a problem. If someone can solve this problem for me then It will be a great help. Q:Write a java application for me that finds a prime number....
Summary: hello everyone. i am playing around with generating prime numbers using the isProbablePrime function in the BigInteger class. However, I would like ...