primes
Summing Prime Numbers below two million
You may have heard of a website called Project Euler (projecteuler.net). I\'m working through the first problems, which were quite trivial, and I\'m on the problem described in the title.[详细]
2023-02-13 09:33 分类:问答Prime number checker unbelievably slow
I have this piece of code which checks whether a given number is prime: If x Mod 2 = 0 Then Return False[详细]
2023-02-10 18:08 分类:问答how do i output prime numbers in descending order using a stack?
import java.util.Stack; public class Primes{ public static void main(String[]args){ Stack<Integer> stack = new Stack<Integer>();[详细]
2023-02-10 11:49 分类:问答pthreads on FreeBSD
I ve made a program that calculates prime numbers making use of pthread library. The program behaves well under cygwin and linux but not under FreeBSD.[详细]
2023-02-09 23:07 分类:问答How to find the largest square in the number (Java)
I want to decompose the number into the product of the largest square in this number and some other number, but I am stuck at some point. I would really appreciate some suggestions. This is what I\'ve[详细]
2023-02-09 01:56 分类:问答Finding first n primes? [duplicate]
This question already has answers here: Closed 12 years ago. Possible Duplicate: Fastest way to list all primes below N in python[详细]
2023-02-08 15:30 分类:问答Illegal prime numbers: What is it exactly? [closed]
Closed. This question is off-topic. It is not currently accepting answers. 开发者_开发问答 Want to improve this question? Update the question so it's on-topic for Stack Overflow.[详细]
2023-02-07 14:56 分类:问答how to represent a number as a sum of 4 primes?
Here is the problem (Summation of Four Primes) states that : The input contains one integer number N (N<=10000000) in every line. This is the number you will have to express as a summation of fou[详细]
2023-02-07 09:56 分类:问答Segmentation Fault in my code
This is a code I submitted at sphere online judge for generating prime numbers but I\'m getting a segmentation fault. The objective is to generate prime numbers between the given range m to n (with n[详细]
2023-02-07 06:13 分类:问答Speeding up string splitting and concatenation
I\'m trying to solve Project Euler\'s problem #35 The number, 197, is called a circular prime 开发者_开发技巧because all rotations of the digits: 197, 971, and 719, are themselves prime.[详细]
2023-02-06 20:30 分类:问答