<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>672</ContextCount>
  <ElementCount>383</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>78</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - 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-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - 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-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - 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-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - 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-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquity</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00305 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityParentheticals</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00400 - 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-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>10101 - Disclosure - ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPolicies</Role>
      <ShortName>ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10201 - 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-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10301 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLosses</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10401 - Disclosure - FAIR VALUE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValue</Role>
      <ShortName>FAIR VALUE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10501 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLeases</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10601 - Disclosure - DEBT AND OTHER BORROWINGS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowings</Role>
      <ShortName>DEBT AND OTHER BORROWINGS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10701 - 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>14</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10801 - Disclosure - COMMITMENTS AND CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>11001 - Disclosure - SEGMENT INFORMATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureSegmentInformation</Role>
      <ShortName>SEGMENT INFORMATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>20102 - 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>17</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>30103 - Disclosure - ACCOUNTING POLICIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesTables</Role>
      <ShortName>ACCOUNTING POLICIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureAccountingPolicies</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>30203 - 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>19</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>30303 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesTables</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLosses</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>30403 - Disclosure - FAIR VALUE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValueTables</Role>
      <ShortName>FAIR VALUE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureFairValue</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>30503 - 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>22</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>30703 - 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>23</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>30803 - Disclosure - COMMITMENTS AND CONTINGENCIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>30903 - Disclosure - EARNINGS PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureEarningsPerShareTables</Role>
      <ShortName>EARNINGS PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>31003 - Disclosure - SEGMENT INFORMATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureSegmentInformationTables</Role>
      <ShortName>SEGMENT INFORMATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureSegmentInformation</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>40101 - Disclosure - ACCOUNTING POLICIES (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesNarrativeDetails</Role>
      <ShortName>ACCOUNTING POLICIES (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureAccountingPoliciesTables</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>40102 - Disclosure - ACCOUNTIN POLICIES (Schedule of hedged assets and cumulative fair value adjustments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountinPoliciesScheduleOfHedgedAssetsAndCumulativeFairValueAdjustmentsDetails</Role>
      <ShortName>ACCOUNTIN POLICIES (Schedule of hedged assets and cumulative fair value adjustments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>40103 - Disclosure - ACCOUNTING POLICIES (Schedule of revisions) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureAccountingPoliciesScheduleOfRevisionsDetails</Role>
      <ShortName>ACCOUNTING POLICIES (Schedule of revisions) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureAccountingPoliciesTables</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>40201 - 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>30</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>40202 - 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>31</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>40203 - 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>32</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>40204 - 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>33</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>40205 - 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>34</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>40208 - 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>35</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>40301 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesNarrativeDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>40302 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of Loans, net of Unearned Income) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansNetOfUnearnedIncomeDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of Loans, net of Unearned Income) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>40303 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (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/DisclosureLoansAndAllowanceForCreditLossesScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (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/DisclosureLoansAndAllowanceForCreditLossesTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>40304 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of nonaccrual loans) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfNonaccrualLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of nonaccrual loans) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>40305 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of the risk category of loans by class of loans) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfRiskCategoryOfLoansByClassOfLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of the risk category of loans by class of loans) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>40306 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of calculation for allowance for credit losses) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfCalculationForAllowanceForCreditLossesDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of calculation for allowance for credit losses) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>40307 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of Activity for Loan and Lease Losses By Class of Loan) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of Activity for Loan and Lease Losses By Class of Loan) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>40308 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of Allowance for Loan Losses and the Recorded Investment by Portfolio Segment) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Schedule of Allowance for Loan Losses and the Recorded Investment by Portfolio Segment) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>40401 - Disclosure - FAIR VALUE (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValueNarrativeDetails</Role>
      <ShortName>FAIR VALUE (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureFairValueTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>40402 - Disclosure - FAIR VALUE (Schedule of assets measured at fair value on a recurring basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValueScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails</Role>
      <ShortName>FAIR VALUE (Schedule of assets measured at fair value on a recurring basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureFairValueTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>40404 - Disclosure - FAIR VALUE (Schedule of Assets Measured at Fair Value on Non-recurring Basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValueScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails</Role>
      <ShortName>FAIR VALUE (Schedule of Assets Measured at Fair Value on Non-recurring Basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureFairValueTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>40405 - Disclosure - FAIR VALUE (Schedule of estimated fair values and fair value hierarchy levels of financial instruments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureFairValueScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails</Role>
      <ShortName>FAIR VALUE (Schedule of estimated fair values and fair value hierarchy levels of financial instruments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureFairValueTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>40501 - 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>48</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40502 - 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>49</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>40503 - 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>50</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>40601 - Disclosure - DEBT AND OTHER BORROWINGS (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrativeDetails</Role>
      <ShortName>DEBT AND OTHER BORROWINGS (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowings</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>40602 - 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/DisclosureDebtAndOtherBorrowings</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>40701 - 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>53</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>40702 - 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>54</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>40703 - 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>55</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>40801 - Disclosure - COMMITMENTS AND CONTINGENCIES (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesNarrativeDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>40802 - Disclosure - COMMITMENTS AND CONTINGENCIES (Schedule of allowance for credit losses off balance sheet exposure) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesScheduleOfAllowanceForCreditLossesOffBalanceSheetExposureDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Schedule of allowance for credit losses off balance sheet exposure) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>40901 - Disclosure - EARNINGS PER SHARE (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureEarningsPerShareNarrativeDetails</Role>
      <ShortName>EARNINGS PER SHARE (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureEarningsPerShareTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>40902 - Disclosure - EARNINGS PER SHARE (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/DisclosureEarningsPerShareScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails</Role>
      <ShortName>EARNINGS PER SHARE (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/DisclosureEarningsPerShareTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>41001 - Disclosure - SEGMENT INFORMATION (Financial Information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.primisbank.com/role/DisclosureSegmentInformationFinancialInformationDetails</Role>
      <ShortName>SEGMENT INFORMATION (Financial Information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.primisbank.com/role/DisclosureSegmentInformationTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.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>Uncategorized</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="frst-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.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>Cover</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 14 fact(s) appearing in ix:hidden were eligible for transformation: dei:DocumentTransitionReport, ecd:NonRule10b51ArrAdoptedFlag, ecd:NonRule10b51ArrTrmntdFlag, ecd:Rule10b51ArrAdoptedFlag, ecd:Rule10b51ArrTrmntdFlag, us-gaap:CommonStockSharesIssued, us-gaap:CommonStockSharesOutstanding, us-gaap:LesseeOperatingLeaseLeaseNotYetCommencedExistenceOfOptionToExtend, us-gaap:NumberOfOperatingSegments, us-gaap:PreferredStockSharesIssued, us-gaap:PreferredStockSharesOutstanding -  frst-20230630x10q.htm 9</Log>
    <Log type="Warning">[ix-0514-Hidden-Fact-Not-Referenced] WARN: 2 fact(s) appearing in ix:hidden were not referenced by any -sec-ix-hidden style property: us-gaap:CommitmentsAndContingencies -  frst-20230630x10q.htm 9</Log>
    <Log type="Warning">[dq-0712-Presentation-Base-Set-Order] Role '41001 - Disclosure - SEGMENT INFORMATION (Financial Information) (Details)', a level 4, Detail role, appears before '995410 - Disclosure - Pay vs Performance Disclosure', a level 1, Note role. frst-20230630.xsd 237, https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd 30</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="frst-20230630x10q.htm">frst-20230630x10q.htm</File>
    <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>frst-20230630xex31d1.htm</File>
    <File>frst-20230630xex31d2.htm</File>
    <File>frst-20230630xex32d1.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="2138">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="29">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>
