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 listMar 11, 2025 10:34wainCGPwainCGPScore: 18,524Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 10, 2025 17:1018,43842,775,06214,197,0002,028,0002,289,664
2Mar 10, 2025 17:1018,46933,569,54714,222,0002,031,0002,289,664
3Mar 11, 2025 10:3418,49435,427,58214,241,0002,034,0002,289,664
4Mar 10, 2025 17:1018,52434,171,11914,264,0002,037,0002,265,088
5Mar 11, 2025 10:3418,53842,408,42314,274,0002,039,0002,289,664
6Mar 11, 2025 10:3418,55845,455,83315,311,0001,020,0002,289,664