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 17:50zielajzielajScore: 4,084Success
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 17:504,01419,730,1132,355,0001,177,0002,461,696
2Dec 21, 2024 17:504,07522,543,1802,391,0001,195,0002,453,504
3Dec 21, 2024 17:504,08217,319,8672,395,0001,197,0002,461,696
4Dec 21, 2024 17:504,08221,042,6792,395,0001,197,0002,457,600
5Dec 21, 2024 17:504,08418,374,4302,396,0001,198,0002,449,408
6Dec 21, 2024 17:504,09117,570,0612,400,0001,200,0002,461,696
7Dec 21, 2024 17:504,12219,399,5232,418,0001,209,0002,535,424
8Dec 21, 2024 17:504,15224,609,7612,436,0001,218,0002,457,600
9Dec 21, 2024 17:504,19418,916,8302,461,0001,230,0002,453,504