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 15:42olliecrowolliecrowScore: 13,263Success
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 15:4313,12728,697,42710,502,0001,050,0002,330,624
2Apr 24, 2026 15:4313,12824,563,78110,503,0001,050,0002,408,448
3Apr 24, 2026 15:4313,13228,763,93610,507,0001,050,0002,338,816
4Apr 24, 2026 15:4313,25029,746,53510,600,0001,060,0002,342,912
5Apr 24, 2026 15:4313,26330,616,57310,611,0001,061,0002,338,816
6Apr 24, 2026 15:4313,26426,541,57910,612,0001,061,0002,334,720
7Apr 24, 2026 15:4313,27728,177,19611,684,00002,400,256
8Apr 24, 2026 15:4313,49627,874,0909,898,0001,979,0002,330,624
9Apr 24, 2026 15:4313,85728,950,69610,163,0002,032,0002,347,008