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 10, 2025 00:44zielajzielajScore: 3,614Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2025 00:483,55318,444,3432,085,0001,042,0002,322,432
2Jan 10, 2025 00:483,58622,574,6652,104,0001,052,0002,318,336
3Jan 10, 2025 00:483,59320,072,3321,054,0002,108,0002,535,424
4Jan 10, 2025 00:443,61416,902,4572,120,0001,060,0002,322,432
5Jan 10, 2025 00:443,67523,876,7351,078,0002,156,0002,322,432
6Jan 10, 2025 00:444,32725,024,0353,808,00002,498,560