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 27, 2024 14:06zielajzielajScore: 4,132Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2024 14:064,01019,019,0652,353,0001,176,0002,461,696
2Dec 27, 2024 14:064,13223,112,6152,424,0001,212,0002,461,696
3Dec 27, 2024 14:065,26819,918,0743,477,0001,159,0002,461,696