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 1, 2025 12:08Ivan BessonovIvan BessonovScore: 15,631Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 1, 2025 12:0815,09533,259,61211,241,0002,043,0002,285,568
2Feb 1, 2025 12:0815,63132,993,11613,755,00002,285,568
3Feb 1, 2025 12:0815,81930,518,11611,933,0001,988,0002,289,664