I am trying to implement rsa algorithm. So, I would like to combine array elements based on block size. For example:
blockSize = 2
arr = [1, 3, 45, 6, 2, 90, 103]
I am willing to merge the elements in a way that 1st and 2nd will be combined into one element. so the array would look like this:
arr = [13, 456, 290, 103]