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 listMay 5, 2026 01:02olliecrowolliecrowScore: 11,818Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2026 01:0511,78924,393,4489,257,0001,118,0002,453,504
2May 5, 2026 01:0511,79827,248,7559,267,0001,116,0002,449,408
3May 5, 2026 01:0511,81330,542,3019,244,0001,152,0002,461,696
4May 5, 2026 01:0511,81325,007,4549,272,0001,124,0002,461,696
5May 5, 2026 01:0511,81830,421,0299,247,0001,153,0002,457,600
6May 5, 2026 01:0511,83124,646,0999,286,0001,126,0002,449,408
7May 5, 2026 01:0511,83528,311,5609,248,0001,167,0002,469,888
8May 5, 2026 01:0511,84628,576,2569,280,0001,145,0002,461,696
9May 5, 2026 01:0511,87526,814,6899,312,0001,138,0002,453,504