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 25, 2026 09:46olliecrowolliecrowScore: 13,609Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 09:4713,35132,128,68310,681,0001,068,0002,326,528
2Apr 25, 2026 09:4713,52833,371,6769,921,0001,984,0002,330,624
3Apr 25, 2026 09:4713,54528,718,4929,934,0001,986,0002,318,336
4Apr 25, 2026 09:4713,57728,329,8989,957,0001,991,0002,330,624
5Apr 25, 2026 09:4713,60928,331,9159,980,0001,996,0002,326,528
6Apr 25, 2026 09:4713,64531,219,73010,007,0002,001,0002,338,816
7Apr 25, 2026 09:4713,65931,191,94510,017,0002,003,0002,326,528
8Apr 25, 2026 09:4713,66729,732,51510,023,0002,004,0002,330,624
9Apr 25, 2026 09:4714,74631,664,26110,981,0001,996,0002,338,816