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 listJul 31, 2022 15:02Robert BurkeRobert BurkeScore: 37,391Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 15:0236,94258,128,84832,509,00002,441,216
2Jul 31, 2022 15:0237,15555,888,44831,675,0001,021,0002,535,424
3Jul 31, 2022 15:0237,16563,442,52931,683,0001,022,0002,441,216
4Jul 31, 2022 15:0237,20663,212,99431,749,000992,0002,445,312
5Jul 31, 2022 15:0237,38258,210,61431,900,000996,0002,449,408
6Jul 31, 2022 15:0237,39157,583,94030,910,0001,994,0002,441,216
7Jul 31, 2022 15:0237,39157,901,51231,907,000997,0002,445,312
8Jul 31, 2022 15:0237,39164,513,32030,910,0001,994,0002,457,600
9Jul 31, 2022 15:0237,47060,865,71731,975,000999,0002,273,280
10Jul 31, 2022 15:0238,54188,954,61933,916,05002,293,760
11Jul 31, 2022 15:0238,831108,561,90334,171,45802,285,568
12Jul 31, 2022 15:0239,07498,092,27734,384,69402,285,568