Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listDec 15, 2024 01:21zielajzielajError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2024 01:2000000Error: expected "51276913869322 ", got "51276913869195 "stderr
2Dec 15, 2024 01:136,19427,482,4345,451,00002,269,184
3Dec 15, 2024 01:136,20118,793,3934,366,0001,091,0002,510,848
4Dec 15, 2024 01:136,21326,654,7745,467,00002,531,328
5Dec 15, 2024 01:136,21520,577,9525,469,00002,510,848
6Dec 15, 2024 01:136,22231,156,3135,475,00002,531,328
7Dec 15, 2024 01:216,22325,784,6305,476,00002,506,752
8Dec 15, 2024 01:216,23527,685,5535,487,00002,510,848
9Dec 15, 2024 01:136,24127,708,5255,492,00002,510,848
10Dec 15, 2024 01:136,24721,145,2005,497,00002,527,232
11Dec 15, 2024 01:216,32224,454,6275,563,00002,510,848
12Dec 15, 2024 01:136,36522,289,4434,481,0001,120,0002,506,752
13Dec 15, 2024 01:136,36925,882,0994,484,0001,121,0002,531,328