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 listMar 3, 2025 01:03wainCGPwainCGPScore: 26,588Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 3, 2025 01:0326,39151,450,61722,215,0001,009,0002,269,184
2Mar 3, 2025 01:0326,58844,720,50922,380,0001,017,0002,273,280
3Mar 3, 2025 01:0326,65847,421,21023,459,00002,289,664