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 24, 2025 08:108QTK8QTKScore: 130,265Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2025 08:10129,850136,017,999111,261,0003,007,0002,465,792
2Jan 24, 2025 08:10130,265139,555,874111,617,0003,016,0002,461,696
3Jan 24, 2025 08:10131,633142,356,057111,843,0003,994,0002,473,984