Input: The D-EVM , the hyperprism base and lengths, current the number of dimensions,
and the number of dimensions.
(1)Procedure  populateHyperPrism  (D-EVM , integer array hyperPrismBase, integer dimensions, integer currentDim,
  integer array hyperPrismLengths)
(2)   if !(currentDim < dimensions) then
(3)      insertVertex (, hyperPrismBase, dimensions);
(4)      return;
(5)   populateHyperPrism (, hyperPrismBase, dimensions, currentDim + 1, hyperPrismLengths);
(6)    hyperPrismBase [currentDim]  [currentDim] + hyperPrismLengths [currentDim];
(7)   populateHyperPrism (, hyperPrismBase, dimensions, currentDim + 1, hyperPrismLengths);
(8)   hyperPrismBase [currentDim] hyperPrismBase [currentDim] – hyperPrismLengths [currentDim];
Algorithm 8: Algorithm to populate the hyperprism from the hyperPrismBase and hyperPrismLengths arrays.