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 16, 2026 19:33Josu San MartinJosu San MartinScore: 58,809Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2026 19:3358,57472,797,83250,535,0001,010,0002,289,664
2Jan 16, 2026 16:0158,74380,665,90850,681,0001,013,0002,289,664
3Jan 16, 2026 16:0158,79478,660,54150,725,0001,014,0002,289,664
4Jan 16, 2026 16:0158,80980,791,76950,738,0001,014,0002,351,104
5Jan 16, 2026 19:3358,89477,408,44451,827,00002,285,568
6Jan 16, 2026 19:3358,95381,901,62849,884,0001,995,0002,289,664