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 listJul 14, 2024 02:08kytanskytansScore: 7,402,425Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2024 02:087,332,8366,524,838,3836,452,895,82202,256,896
2Jul 14, 2024 02:087,402,4256,582,256,8906,514,133,85802,260,992
3Jul 14, 2024 02:087,415,6356,587,021,0576,525,759,06002,256,896