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 listMar 28, 2026 18:28Dominique GarmierDominique GarmierScore: 93,348Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 28, 2026 18:2893,174111,025,51980,994,000999,0002,478,080
2Mar 28, 2026 18:3493,211107,673,07981,026,0001,000,0002,469,888
3Mar 28, 2026 18:3493,248107,448,38781,058,0001,000,0002,277,376
4Mar 28, 2026 18:3493,348115,443,22481,157,000989,0002,277,376
5Mar 28, 2026 18:2893,385105,251,66281,177,0001,002,0002,478,080
6Mar 28, 2026 18:2893,418103,141,32182,208,00002,478,080