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 listDec 26, 2025 00:48vahookvahookScore: 5,889Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 26, 2025 00:485,83023,442,6953,078,0002,052,0002,535,424
2Dec 26, 2025 00:485,84225,221,7623,085,0002,056,0002,465,792
3Dec 26, 2025 00:485,85616,640,1893,092,0002,061,0002,473,984
4Dec 26, 2025 00:485,86520,105,3524,129,0001,032,0002,437,120
5Dec 26, 2025 00:485,88927,545,5834,146,0001,036,0002,535,424
6Dec 26, 2025 00:485,98025,986,5934,210,0001,052,0002,473,984
7Dec 26, 2025 00:486,00721,746,2934,229,0001,057,0002,465,792
8Dec 26, 2025 00:486,04026,544,6424,252,0001,063,0002,473,984
9Dec 26, 2025 00:486,06018,583,8014,267,0001,066,0002,478,080