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 listDec 20, 2024 21:02zielajzielajScore: 4,181Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 20, 2024 21:024,09021,845,8873,599,00002,277,376
2Dec 20, 2024 21:024,12519,301,5792,420,0001,210,0002,535,424
3Dec 20, 2024 21:024,14320,212,2152,431,0001,215,0002,531,328
4Dec 20, 2024 21:024,14724,155,6472,433,0001,216,0002,285,568
5Dec 20, 2024 21:024,18123,710,0332,453,0001,226,0002,535,424
6Dec 20, 2024 21:024,20019,337,6242,464,0001,232,0002,277,376
7Dec 20, 2024 21:024,24418,664,2702,490,0001,245,0002,285,568
8Dec 20, 2024 21:024,30619,457,5932,526,0001,263,0002,535,424
9Dec 20, 2024 21:024,31623,246,9042,532,0001,266,0002,531,328