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 20, 2026 12:31Dominique GarmierDominique GarmierScore: 13,892Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 12:3213,69534,732,66810,044,0002,008,0002,375,680
2Apr 20, 2026 12:3213,76229,023,50610,093,0002,018,0002,273,280
3Apr 20, 2026 12:3213,79533,914,15110,117,0002,023,0002,375,680
4Apr 20, 2026 12:3213,85127,932,41210,158,0002,031,0002,375,680
5Apr 20, 2026 12:3213,89230,957,72110,188,0002,037,0002,379,776
6Apr 20, 2026 12:3213,93229,684,43911,240,0001,021,0002,273,280
7Apr 20, 2026 12:3213,94331,658,78910,225,0002,045,0002,273,280
8Apr 20, 2026 12:3214,00032,073,04211,294,0001,026,0002,375,680
9Apr 20, 2026 12:3214,00929,503,76911,301,0001,027,0002,273,280