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 20, 2025 18:23matsuoka-601matsuoka-601Score: 9,160Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2025 18:239,06021,261,1616,977,000996,0002,437,120
2Jan 20, 2025 18:239,16023,047,9276,046,0002,015,0002,428,928
3Jan 20, 2025 18:239,16826,475,4606,051,0002,017,0002,445,312