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 29, 2026 01:18olliecrowolliecrowScore: 13,547Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 01:1913,51026,141,9997,926,0003,963,0002,441,216
2Apr 29, 2026 01:1913,52823,846,91310,823,0001,082,0002,465,792
3Apr 29, 2026 01:1913,52827,622,9218,929,0002,976,0002,457,600
4Apr 29, 2026 01:1913,54230,238,8309,931,0001,986,0002,465,792
5Apr 29, 2026 01:1913,54727,313,5879,935,0001,987,0002,465,792
6Apr 29, 2026 01:1913,55632,410,0029,942,0001,988,0002,461,696
7Apr 29, 2026 01:1913,55727,146,1629,943,0001,988,0002,461,696
8Apr 29, 2026 01:1913,56534,205,9529,949,0001,989,0002,449,408
9Apr 29, 2026 01:1913,58833,077,3969,965,0001,993,0002,322,432