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 28, 2022 06:45Yuriy LyfenkoYuriy LyfenkoScore: 38,920Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 06:4530,52890,525,52226,864,83402,215,936
2Dec 28, 2022 06:4530,63183,329,18426,955,19202,215,936
3Dec 28, 2022 06:4530,70385,657,30727,019,00402,215,936
4Dec 28, 2022 06:4538,79761,957,44233,137,0001,004,0002,375,680
5Dec 28, 2022 06:4538,83265,316,95132,162,0002,010,0002,269,184
6Dec 28, 2022 06:4538,91359,685,22832,229,0002,014,0002,375,680
7Dec 28, 2022 06:4538,92059,662,03433,243,0001,007,0002,273,280
8Dec 28, 2022 06:4538,93662,519,28634,264,00002,269,184
9Dec 28, 2022 06:4538,97360,983,62034,296,00002,379,776
10Dec 28, 2022 06:4538,99466,054,29934,315,00002,269,184
11Dec 28, 2022 06:4539,02556,796,47734,342,00002,367,488
12Dec 28, 2022 06:4539,08257,582,38434,392,00002,269,184