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 13, 2024 02:09zielajzielajScore: 8,475Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 02:098,43223,887,5927,420,00002,269,184
2Dec 13, 2024 02:098,44121,449,8447,428,00002,314,240
3Dec 13, 2024 02:098,44924,374,9577,435,00002,531,328
4Dec 13, 2024 02:098,46724,624,6597,451,00002,318,336
5Dec 13, 2024 02:098,47522,248,8496,393,0001,065,0002,416,640
6Dec 13, 2024 02:098,47622,839,3497,459,00002,314,240
7Dec 13, 2024 02:098,47824,545,7027,461,00002,531,328
8Dec 13, 2024 02:098,48019,428,1917,462,00002,318,336
9Dec 13, 2024 02:098,59421,199,6946,483,0001,080,0002,318,336