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 2, 2025 22:48zielajzielajScore: 3,628Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2025 22:483,49521,034,3931,025,0002,051,0002,396,160
2Jan 2, 2025 22:483,62816,511,9981,064,0002,129,0002,535,424
3Jan 2, 2025 22:483,70318,641,9781,086,0002,173,0002,465,792