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 listJan 9, 2025 13:42Alex KentAlex KentScore: 290,264Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 9, 2025 13:42289,261280,396,810253,548,0001,002,0002,273,280
2Jan 9, 2025 13:42289,606281,335,470252,855,0001,998,0002,289,664
3Jan 9, 2025 13:42289,982280,211,714254,184,0001,000,0002,289,664
4Jan 9, 2025 13:42290,206278,307,690255,381,00002,273,280
5Jan 9, 2025 13:42290,264287,483,449254,431,0001,001,0002,289,664
6Jan 9, 2025 13:42290,284277,909,658255,450,00002,281,472
7Jan 9, 2025 13:42290,355278,825,847254,510,0001,002,0002,273,280
8Jan 9, 2025 13:42290,776284,168,832254,884,000999,0002,289,664
9Jan 9, 2025 13:42291,159278,782,093255,220,0001,000,0002,289,664