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, 2024 19:00AnSaAnSaScore: 200,563Success
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, 2024 19:00200,553241,629,447176,486,72302,203,648
2Jan 24, 2024 19:00200,563243,301,201176,495,63602,215,936
3Jan 24, 2024 19:00201,020239,985,048176,897,23702,215,936