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 18, 2026 20:32Victor MerckléVictor MerckléScore: 35,951Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 20:3235,60954,717,28831,336,00002,273,280
2Apr 18, 2026 20:3235,78864,027,38431,493,00002,396,160
3Apr 18, 2026 20:3235,90156,216,67030,574,0001,019,0002,387,968
4Apr 18, 2026 20:3235,95058,053,83230,616,0001,020,0002,269,184
5Apr 18, 2026 20:3235,95157,461,19130,617,0001,020,0002,392,064
6Apr 18, 2026 20:3235,97758,071,12830,639,0001,021,0002,392,064
7Apr 18, 2026 20:3235,99258,786,66031,673,00002,396,160
8Apr 18, 2026 20:3236,00756,025,39030,664,0001,022,0002,404,352
9Apr 18, 2026 20:3236,08661,348,43130,732,0001,024,0002,392,064