primes
Prime Number Algorithm
Can anyone tell me how to implement Sieve of Eratosthenes algorithm in C? I need to generate prime numbers but my algorithm is slow.[详细]
2023-02-06 18:02 分类:问答Boundless Arrays?
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[详细]
2023-02-06 03:47 分类:问答Proving the primality of strong probable primes
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[详细]
2023-02-06 01:20 分类:问答How do I implement the Sieve Of Eratosthenes using multithreaded C#?
I am trying to implement Sieve Of Eratosthenes using Mutithreading. Here is my implementation: using System;[详细]
2023-02-05 01:33 分类:问答Determining if a given number is a prime in haskell
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):[详细]
2023-02-04 21:49 分类:问答Given a number X, estimate where in an ordered list of primes that number may fall
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.[详细]
2023-02-04 08:49 分类:问答Calculate nth prime.. in java?
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..[详细]
2023-02-03 17:06 分类:问答Recursion with Func
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...[详细]
2023-02-03 06:35 分类:问答Why .Net dictionaries resize to prime numbers?
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[详细]
2023-02-03 01:30 分类:问答String encryption only with numbers?
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[详细]
2023-02-02 09:21 分类:问答