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 26, 2026 20:00TudyMTudyMScore: 123,777Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 20:01122,957125,191,245107,202,0001,001,0002,519,040
2Apr 26, 2026 20:01123,167127,137,716106,380,0002,007,0002,527,232
3Apr 26, 2026 20:01123,401125,898,911107,588,0001,005,0002,523,136
4Apr 26, 2026 20:01123,762126,030,117102,916,0005,995,0002,531,328
5Apr 26, 2026 20:01123,777130,261,184104,927,0003,997,0002,531,328
6Apr 26, 2026 20:01123,779124,157,515107,927,000999,0002,519,040
7Apr 26, 2026 20:01124,044127,576,645108,158,0001,001,0002,531,328
8Apr 26, 2026 20:01124,100127,502,957107,205,0002,003,0002,531,328
9Apr 26, 2026 20:01124,182124,009,668108,279,0001,002,0002,523,136