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 3, 2025 01:48wainCGPwainCGPScore: 25,248Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 3, 2025 01:4824,99248,529,35319,994,0001,999,0002,281,472
2Mar 3, 2025 01:4825,04544,279,17721,039,0001,001,0002,273,280
3Mar 3, 2025 01:4825,17544,095,60120,140,0002,014,0002,277,376
4Mar 3, 2025 01:4825,20648,584,59520,165,0002,016,0002,277,376
5Mar 3, 2025 01:4825,24854,760,59321,209,0001,009,0002,289,664
6Mar 3, 2025 01:4825,25046,346,46521,210,0001,010,0002,269,184
7Mar 3, 2025 01:4825,27045,224,75921,228,0001,010,0002,273,280
8Mar 3, 2025 01:4825,32244,662,03320,258,0002,025,0002,289,664
9Mar 3, 2025 01:4825,34848,165,51320,279,0002,027,0002,289,664