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 23, 2025 11:158QTK8QTKScore: 77,958Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2025 11:1577,67891,396,83264,336,0004,021,0002,465,792
2Jan 23, 2025 11:1577,95892,911,05465,577,0003,026,0002,465,792
3Jan 23, 2025 11:1578,04596,169,55865,650,0003,030,0002,285,568