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 21, 2024 12:21zielajzielajScore: 4,198Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 21, 2024 12:214,16021,484,8082,441,0001,220,0002,535,424
2Dec 21, 2024 12:214,19824,623,7092,463,0001,231,0002,535,424
3Dec 21, 2024 12:214,24820,001,7962,492,0001,246,0002,449,408