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 28, 2024 16:59zielajzielajScore: 3,693Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2024 16:593,50822,388,2951,029,0002,058,0002,461,696
2Dec 28, 2024 16:593,60319,688,7721,057,0002,114,0002,449,408
3Dec 28, 2024 16:593,62821,806,2561,064,0002,129,0002,465,792
4Dec 28, 2024 16:593,63523,679,4331,066,0002,133,0002,453,504
5Dec 28, 2024 16:593,69323,012,0612,167,0001,083,0002,535,424
6Dec 28, 2024 16:593,69920,467,8091,085,0002,170,0002,457,600
7Dec 28, 2024 16:593,76821,298,3091,105,0002,211,0002,465,792
8Dec 28, 2024 16:593,79221,167,5541,112,0002,225,0002,465,792
9Dec 28, 2024 16:593,80219,818,9542,231,0001,115,0002,449,408