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 14, 2025 03:14mgildermgilderScore: 281,844Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2025 03:14281,219275,513,062246,472,0001,001,0002,281,472
2Feb 14, 2025 03:14281,844276,493,857247,023,0001,000,0002,363,392
3Feb 14, 2025 03:14282,028271,650,679247,185,0001,000,0002,371,584