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 listNov 6, 2025 00:21izotoffizotoffScore: 139,625Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2025 00:21139,422148,406,366120,680,0002,011,0002,285,568
2Nov 6, 2025 00:21139,598149,577,189121,848,000998,0002,510,848
3Nov 6, 2025 00:21139,600152,745,789121,850,000998,0002,285,568
4Nov 6, 2025 00:21139,609149,464,849120,859,0001,997,0002,519,040
5Nov 6, 2025 00:21139,625147,495,043120,873,0001,997,0002,265,088
6Nov 6, 2025 00:21139,806146,860,118121,029,0002,000,0002,265,088
7Nov 6, 2025 00:21139,840150,973,847121,059,0002,000,0002,285,568
8Nov 6, 2025 00:21140,083146,670,887120,267,0003,006,0002,265,088
9Nov 6, 2025 00:21140,274140,169,179122,438,0001,003,0002,359,296