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 01:42Yibai MengYibai MengScore: 299,720Success
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 01:42299,560335,658,668263,613,00802,256,896
2Jul 14, 2024 01:42299,720328,906,610263,753,40002,387,968
3Jul 14, 2024 01:42299,934331,190,721263,941,95002,256,896