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 5, 2024 23:34Joad NacerJoad NacerScore: 29,241Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 5, 2024 23:3429,10948,132,40324,592,0001,024,0002,527,232
2Dec 5, 2024 23:3429,18158,608,77024,652,0001,027,0002,490,368
3Dec 5, 2024 23:3429,22349,015,05725,716,00002,527,232
4Dec 5, 2024 23:3429,23650,650,66725,728,00002,490,368
5Dec 5, 2024 23:3429,24151,843,89325,732,00002,490,368
6Dec 5, 2024 23:3429,29448,981,51125,779,00002,527,232
7Dec 5, 2024 23:3429,38552,259,93724,865,000994,0002,363,392
8Dec 5, 2024 23:3429,44254,148,46522,920,0002,989,0002,490,368
9Dec 5, 2024 23:3429,53149,869,81222,989,0002,998,0002,527,232