Can anyone tell me how to implement Sieve of Eratosthenes algorithm in C? I need to generate prime numbers but my algorithm is slow.
I\'m having some trouble. I wrote a code to find prime numbers up to a number, but for some reason, it gives me the error that I didn\'t define the number of elements in the array that I will be using
Using the probabilistic version of the Miller-Rabin test, I have generated a list of medium-large (200-300 digit) probable primes. But probable ain\'t good enough! I need to know these numbers are pri
I am trying to implement Sieve Of Eratosthenes using Mutithreading. Here is my implementation: using System;
So I have devised the following function for seeing if a given number is a prime in Haskell (it assumes the first prime is 2):
Given a pre-calculated ordered list of primes, and a supplied number X, I want to estimate roughly where X would fall in the list of primes, and start searching at that point.
I am printing out a list of prime numbers in a program and storing it an array. Then I want to get the the prime number on a particular index instead of the total list..
Is it possible to do recursion with an Func delegate? I have the following, which doesn开发者_如何学编程\'t compile because the name of the Func isn\'t in scope...
According to this question a .Net dictionary resizes its allocated space开发者_如何学C to prime numbers that are at least twice the current size. Why is it important to use prime numbers and not just
Suppose your bank clerk gives you an arbitrary password such as hel34/hjal0@# and you cannot remember it without writing it to a paper. Dilemma: you never write passwords to paper. So you try to inven