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 27, 2025 18:49Josu San MartinJosu San MartinScore: 60,090Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2025 18:4959,77574,286,42152,602,00002,289,664
2Dec 27, 2025 18:4960,07384,048,00751,867,000997,0002,289,664
3Dec 27, 2025 18:4960,08181,549,19250,876,0001,995,0002,289,664
4Dec 27, 2025 18:4960,08984,376,17651,881,000997,0002,363,392
5Dec 27, 2025 18:4960,09076,745,28351,882,000997,0002,469,888
6Dec 27, 2025 18:4960,12578,718,90851,912,000998,0002,289,664
7Dec 27, 2025 18:4960,26677,579,63551,033,0002,001,0002,289,664
8Dec 27, 2025 18:4960,28380,988,84652,049,0001,000,0002,289,664
9Dec 27, 2025 18:4960,28877,205,29451,051,0002,002,0002,375,680