<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>735</ContextCount>
  <ElementCount>411</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>93</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995200090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995200100 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>995200105 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>995200200 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF INCOME (LOSS) AND COMPREHENSIVE INCOME (LOSS)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF INCOME (LOSS) AND COMPREHENSIVE INCOME (LOSS)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>995200300 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Revised and Restated)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Revised and Restated)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>995200305 - Statement - CONDENSED CONSOLIDATED STATEMENT OF CHANGES IN STOCKHOLDERS' EQUITY (Revised and Restated) (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/StatementCondensedConsolidatedStatementOfChangesInStockholdersEquityRevisedAndRestatedParentheticals</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENT OF CHANGES IN STOCKHOLDERS' EQUITY (Revised and Restated) (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>995200400 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995210101 - Disclosure - ACCOUNTING POLICIES (Revised and Restated)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestated</Role>
      <ShortName>ACCOUNTING POLICIES (Revised and Restated)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>995210201 - Disclosure - INVESTMENT SECURITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureInvestmentSecurities</Role>
      <ShortName>INVESTMENT SECURITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995210301 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestated</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995210401 - Disclosure - DERIVATIVES (Restated)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureDerivativesRestated</Role>
      <ShortName>DERIVATIVES (Restated)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995210501 - Disclosure - FAIR VALUE (Revised and Restated)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestated</Role>
      <ShortName>FAIR VALUE (Revised and Restated)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995210601 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLeases</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995210701 - Disclosure - DEBT AND OTHER BORROWINGS (Restated)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestated</Role>
      <ShortName>DEBT AND OTHER BORROWINGS (Restated)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995210801 - Disclosure - STOCK- BASED COMPENSATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureStockBasedCompensation</Role>
      <ShortName>STOCK- BASED COMPENSATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995210901 - Disclosure - COMMITMENTS AND CONTINGENCIES (Restated)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestated</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Restated)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995211001 - Disclosure - EARNINGS PER SHARE (Restated)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureEarningsPerShareRestated</Role>
      <ShortName>EARNINGS PER SHARE (Restated)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995211101 - Disclosure - SEGMENT INFORMATION (Restated)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureSegmentInformationRestated</Role>
      <ShortName>SEGMENT INFORMATION (Restated)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>99920102 - Disclosure - ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesPolicies</Role>
      <ShortName>ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>99930103 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedTables</Role>
      <ShortName>ACCOUNTING POLICIES (Revised and Restated) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestated</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>99930203 - Disclosure - INVESTMENT SECURITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables</Role>
      <ShortName>INVESTMENT SECURITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureInvestmentSecurities</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>99930303 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestated</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>99930403 - Disclosure - DERIVATIVES (Restated) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureDerivativesRestatedTables</Role>
      <ShortName>DERIVATIVES (Restated) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureDerivativesRestated</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>99930503 - Disclosure - FAIR VALUE (Revised and Restated) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedTables</Role>
      <ShortName>FAIR VALUE (Revised and Restated) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestated</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>99930603 - Disclosure - LEASES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLeasesTables</Role>
      <ShortName>LEASES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLeases</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>99930803 - Disclosure - STOCK- BASED COMPENSATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureStockBasedCompensationTables</Role>
      <ShortName>STOCK- BASED COMPENSATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureStockBasedCompensation</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>99930903 - Disclosure - COMMITMENTS AND CONTINGENCIES (Restated) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedTables</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Restated) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestated</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>99931003 - Disclosure - EARNINGS PER SHARE (Restated) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedTables</Role>
      <ShortName>EARNINGS PER SHARE (Restated) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureEarningsPerShareRestated</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>99931103 - Disclosure - SEGMENT INFORMATION (Restated) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureSegmentInformationRestatedTables</Role>
      <ShortName>SEGMENT INFORMATION (Restated) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureSegmentInformationRestated</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>99940101 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails</Role>
      <ShortName>ACCOUNTING POLICIES (Revised and Restated) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedTables</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>99940102 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Schedule of hedged assets and cumulative fair value adjustments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfHedgedAssetsAndCumulativeFairValueAdjustmentsDetails</Role>
      <ShortName>ACCOUNTING POLICIES (Revised and Restated) (Schedule of hedged assets and cumulative fair value adjustments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedTables</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>99940103 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Schedule of revisions) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails</Role>
      <ShortName>ACCOUNTING POLICIES (Revised and Restated) (Schedule of revisions) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedTables</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>99940104 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Balance Sheet) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails</Role>
      <ShortName>ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Balance Sheet) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>99940105 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Income and Comprehensive Income (Loss)) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails</Role>
      <ShortName>ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Income and Comprehensive Income (Loss)) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>99940106 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Changes in Stockholders' Equity) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfChangesInStockholdersEquityDetails</Role>
      <ShortName>ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Changes in Stockholders' Equity) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>99940107 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Cash Flows) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails</Role>
      <ShortName>ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Cash Flows) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>99940201 - Disclosure - INVESTMENT SECURITIES (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails</Role>
      <ShortName>INVESTMENT SECURITIES (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>99940202 - Disclosure - INVESTMENT SECURITIES (Schedule of amortized cost and fair value of securities available-for-sale) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails</Role>
      <ShortName>INVESTMENT SECURITIES (Schedule of amortized cost and fair value of securities available-for-sale) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>99940203 - Disclosure - INVESTMENT SECURITIES (Schedule of amortized cost, unrecognized gains and losses, and fair value of held to maturity securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails</Role>
      <ShortName>INVESTMENT SECURITIES (Schedule of amortized cost, unrecognized gains and losses, and fair value of held to maturity securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>99940204 - Disclosure - INVESTMENT SECURITIES (Schedule of fair value and carrying amount, if different, of debt securities, by contractual maturity) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails</Role>
      <ShortName>INVESTMENT SECURITIES (Schedule of fair value and carrying amount, if different, of debt securities, by contractual maturity) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>99940205 - Disclosure - INVESTMENT SECURITIES (Schedule of present information regarding securities in a continuous unrealized loss position by duration of time in a loss position) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails</Role>
      <ShortName>INVESTMENT SECURITIES (Schedule of present information regarding securities in a continuous unrealized loss position by duration of time in a loss position) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>99940206 - Disclosure - INVESTMENT SECURITIES (Schedule of changes in accumulated other comprehensive income by component) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails</Role>
      <ShortName>INVESTMENT SECURITIES (Schedule of changes in accumulated other comprehensive income by component) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>99940301 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>99940302 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Loans, net of Unearned Income) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Loans, net of Unearned Income) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>99940303 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Details of Aging of the Recorded Investment in Past Due loans by Class of Loans) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Details of Aging of the Recorded Investment in Past Due loans by Class of Loans) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>99940304 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of nonaccrual loans) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of nonaccrual loans) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>99940305 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of the risk category of loans by class of loans) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of the risk category of loans by class of loans) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>99940306 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of calculation for allowance for credit losses) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of calculation for allowance for credit losses) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>99940307 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Activity for Loan and Lease Losses By Class of Loan) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Activity for Loan and Lease Losses By Class of Loan) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>99940308 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Allowance for Loan Losses and the Recorded Investment by Portfolio Segment) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Allowance for Loan Losses and the Recorded Investment by Portfolio Segment) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>99940401 - Disclosure - DERIVATIVES (Restated) (Consumer Program Derivative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails</Role>
      <ShortName>DERIVATIVES (Restated) (Consumer Program Derivative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureDerivativesRestatedTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>99940402 - Disclosure - DERIVATIVES (Restated) (Mortgage Banking Derivatives and Financial Instruments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails</Role>
      <ShortName>DERIVATIVES (Restated) (Mortgage Banking Derivatives and Financial Instruments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureDerivativesRestatedTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>99940501 - Disclosure - FAIR VALUE (Revised and Restated) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails</Role>
      <ShortName>FAIR VALUE (Revised and Restated) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>99940502 - Disclosure - FAIR VALUE (Revised and Restated) (Schedule of assets measured at fair value on a recurring basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails</Role>
      <ShortName>FAIR VALUE (Revised and Restated) (Schedule of assets measured at fair value on a recurring basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>99940503 - Disclosure - FAIR VALUE (Revised and Restated) (Schedule of Assets Measured at Fair Value on Non-recurring Basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails</Role>
      <ShortName>FAIR VALUE (Revised and Restated) (Schedule of Assets Measured at Fair Value on Non-recurring Basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>99940504 - Disclosure - FAIR VALUE (Revised and Restated) (Schedule of estimated fair values and fair value hierarchy levels of financial instruments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails</Role>
      <ShortName>FAIR VALUE (Revised and Restated) (Schedule of estimated fair values and fair value hierarchy levels of financial instruments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>99940601 - Disclosure - LEASES (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLeasesNarrativeDetails</Role>
      <ShortName>LEASES (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLeasesTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>99940602 - Disclosure - LEASES (Schedule of operating lease other information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLeasesScheduleOfOperatingLeaseOtherInformationDetails</Role>
      <ShortName>LEASES (Schedule of operating lease other information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLeasesTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>99940603 - Disclosure - LEASES (Schedule of future minimum rental payments required under non-cancelable operating leases for bank premises) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails</Role>
      <ShortName>LEASES (Schedule of future minimum rental payments required under non-cancelable operating leases for bank premises) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLeasesTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>99940701 - Disclosure - DEBT AND OTHER BORROWINGS (Restated) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestatedNarrativeDetails</Role>
      <ShortName>DEBT AND OTHER BORROWINGS (Restated) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestated</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>99940702 - Disclosure - DEBT AND OTHER BORROWINGS (Narrative 2) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details</Role>
      <ShortName>DEBT AND OTHER BORROWINGS (Narrative 2) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestated</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>99940801 - Disclosure - STOCK- BASED COMPENSATION (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails</Role>
      <ShortName>STOCK- BASED COMPENSATION (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureStockBasedCompensationTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>99940802 - Disclosure - STOCK-BASED COMPENSATION (Schedule of Activity in the Stock Option Plan) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION (Schedule of Activity in the Stock Option Plan) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>99940803 - Disclosure - STOCK-BASED COMPENSATION (Schedule of activity in the restricted stock plan) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION (Schedule of activity in the restricted stock plan) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>99940901 - Disclosure - COMMITMENTS AND CONTINGENCIES (Restated) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Restated) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>99940902 - Disclosure - COMMITMENTS AND CONTINGENCIES (Restated) (Schedule of allowance for credit losses off balance sheet exposure) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedScheduleOfAllowanceForCreditLossesOffBalanceSheetExposureDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Restated) (Schedule of allowance for credit losses off balance sheet exposure) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>99941001 - Disclosure - EARNINGS PER SHARE (Restated) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedNarrativeDetails</Role>
      <ShortName>EARNINGS PER SHARE (Restated) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>99941002 - Disclosure - EARNINGS PER SHARE (Restated) (Schedule of Reconciliation of the Denominators of the Basic and Diluted Earnings per Share) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails</Role>
      <ShortName>EARNINGS PER SHARE (Restated) (Schedule of Reconciliation of the Denominators of the Basic and Diluted Earnings per Share) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="frst-20230630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>99941101 - Disclosure - SEGMENT INFORMATION (Restated) (Financial Information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails</Role>
      <ShortName>SEGMENT INFORMATION (Restated) (Financial Information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureSegmentInformationRestatedTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>frst-20230630.xsd</File>
    <File>frst-20230630_cal.xml</File>
    <File>frst-20230630_def.xml</File>
    <File>frst-20230630_lab.xml</File>
    <File>frst-20230630_pre.xml</File>
    <File doctype="10-Q/A" isDefinitelyFs="true" isUsgaap="true" original="frst-20230630x10qa.htm">frst-20230630x10qa.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="2444">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
