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 1, 2025 05:47wainCGPwainCGPScore: 30,144Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 1, 2025 05:4729,89156,763,72224,281,0002,023,0002,273,280
2Feb 28, 2025 18:3230,04156,183,14225,420,0001,016,0002,289,664
3Feb 28, 2025 18:3230,06459,122,18126,456,00002,289,664
4Mar 1, 2025 05:4730,14446,526,06025,507,0001,020,0002,281,472
5Feb 28, 2025 18:3230,17649,645,42925,534,0001,021,0002,289,664
6Mar 1, 2025 05:4730,30051,926,39325,639,0001,025,0002,289,664