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 listAug 3, 2022 14:38Robert BurkeRobert BurkeScore: 36,681Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 3, 2022 14:3835,510102,547,34631,248,52602,220,032
2Aug 3, 2022 14:3835,54999,652,03331,283,15602,240,512
3Aug 3, 2022 14:3835,85386,014,86731,550,80402,228,224
4Aug 3, 2022 14:3836,54153,800,87730,147,0002,009,0002,396,160
5Aug 3, 2022 14:3836,58554,600,38731,189,0001,006,0002,535,424
6Aug 3, 2022 14:3836,63262,093,04231,229,0001,007,0002,387,968
7Aug 3, 2022 14:3836,68151,199,23931,271,0001,008,0002,392,064
8Aug 3, 2022 14:3836,78553,473,56731,360,0001,011,0002,400,256
9Aug 3, 2022 14:3836,80255,741,61031,374,0001,012,0002,273,280
10Aug 3, 2022 14:3836,80554,053,65832,388,00002,535,424
11Aug 3, 2022 14:3837,03656,353,93832,592,00002,387,968
12Aug 3, 2022 14:3837,19162,199,90232,728,00002,273,280