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 listApr 24, 2026 11:44Victor MerckléVictor MerckléScore: 11,017Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 11:4510,97327,835,7248,584,0001,073,0002,326,528
2Apr 24, 2026 11:4510,97822,725,5848,588,0001,073,0002,383,872
3Apr 24, 2026 11:4510,99830,411,1898,604,0001,075,0002,383,872
4Apr 24, 2026 11:4511,01131,385,9577,537,0002,153,0002,375,680
5Apr 24, 2026 11:4511,01734,739,8518,618,0001,077,0002,383,872
6Apr 24, 2026 11:4511,02122,858,0168,622,0001,077,0002,310,144
7Apr 24, 2026 11:4511,02129,135,6928,622,0001,077,0002,318,336
8Apr 24, 2026 11:4511,03523,979,5278,632,0001,079,0002,387,968
9Apr 24, 2026 11:4511,14027,999,5398,715,0001,089,0002,379,776