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:40Joad NacerJoad NacerError
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:4300000Error: expected "51049592312018 ", got "51051708795045 "stderr
2Dec 5, 2024 23:4022,39337,223,96719,706,00002,269,184
3Dec 5, 2024 23:4022,47849,597,55819,781,00002,269,184
4Dec 5, 2024 23:4022,61442,355,37017,910,0001,990,0002,469,888
5Dec 5, 2024 23:4022,61546,813,37018,906,000995,0002,269,184
6Dec 5, 2024 23:4022,61645,698,10217,912,0001,990,0002,461,696
7Dec 5, 2024 23:4022,61948,324,66619,905,00002,457,600
8Dec 5, 2024 23:4022,62045,865,26718,911,000995,0002,457,600
9Dec 5, 2024 23:4022,63449,449,82218,923,000995,0002,269,184
10Dec 5, 2024 23:4022,75737,857,88919,025,0001,001,0002,465,792