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 listFeb 25, 2025 13:02wainCGPwainCGPScore: 30,947Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 25, 2025 13:0230,77651,758,14325,077,0002,006,0002,269,184
2Feb 25, 2025 13:0230,82258,360,78225,114,0002,009,0002,289,664
3Feb 25, 2025 13:0230,85758,184,63325,143,0002,011,0002,289,664
4Feb 25, 2025 13:0230,88249,869,31826,170,0001,006,0002,277,376
5Feb 25, 2025 13:0230,94750,493,38025,216,0002,017,0002,273,280
6Feb 25, 2025 13:0230,98449,462,32726,257,0001,009,0002,289,664
7Feb 25, 2025 13:0231,02858,795,78925,283,0002,022,0002,269,184
8Feb 25, 2025 13:0231,05246,880,61325,302,0002,024,0002,285,568
9Feb 25, 2025 13:0231,06750,667,93125,314,0002,025,0002,289,664