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 17, 2026 22:06Charles CabergsCharles CabergsScore: 60,856Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2026 22:0660,65979,337,31653,380,00002,322,432
2Apr 17, 2026 22:0660,76176,864,92853,470,00002,473,984
3Apr 17, 2026 22:0660,80582,874,50850,480,0003,028,0002,281,472
4Apr 17, 2026 22:0660,81385,363,81552,506,0001,009,0002,289,664
5Apr 17, 2026 22:0660,85681,706,97751,533,0002,020,0002,289,664
6Apr 17, 2026 22:0660,90379,999,62452,584,0001,011,0002,473,984
7Apr 17, 2026 22:0660,94879,028,16352,623,0001,011,0002,289,664
8Apr 17, 2026 22:0661,05679,689,97552,716,0001,013,0002,469,888
9Apr 17, 2026 22:0661,07583,982,78751,718,0002,028,0002,469,888