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 listJan 17, 2026 16:46Josu San MartinJosu San MartinScore: 21,033Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 16:4620,85641,444,10917,334,0001,019,0002,449,408
2Jan 17, 2026 16:4620,93636,878,76417,401,0001,023,0002,453,504
3Jan 17, 2026 16:4620,95938,680,14517,420,0001,024,0002,367,488
4Jan 17, 2026 16:4621,03342,706,56118,509,00002,363,392
5Jan 17, 2026 16:4621,05038,506,17017,495,0001,029,0002,523,136
6Jan 17, 2026 16:4621,17035,539,32417,595,0001,035,0002,433,024