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 listJun 21, 2026 22:53Josu San MartinJosu San MartinScore: 24,690Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:5624,60630,737,37319,561,0002,093,0002,113,536
2Jun 21, 2026 22:5624,61230,710,11119,580,0002,079,0002,113,536
3Jun 21, 2026 22:5624,65330,714,85619,620,0002,075,0002,113,536
4Jun 21, 2026 22:5624,65731,707,91719,594,0002,105,0002,113,536
5Jun 21, 2026 22:5624,69030,737,35119,639,0002,089,0002,113,536
6Jun 21, 2026 22:5624,71930,792,44319,623,0002,130,0002,113,536
7Jun 21, 2026 22:5624,81130,829,50419,716,0002,118,0002,113,536
8Jun 21, 2026 22:5624,83430,741,86019,738,0002,116,0002,113,536
9Jun 21, 2026 22:5624,85130,821,83519,769,0002,100,0002,113,536