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 listFeb 28, 2024 22:45IhebIhebScore: 574,343Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 28, 2024 22:45574,273566,303,160505,359,85002,236,416
2Feb 28, 2024 22:45574,343568,098,193505,421,57102,248,704
3Feb 28, 2024 22:45574,936565,451,831505,943,37202,236,416